What is Nostr?
Bill Mill /
npub1k3c…3fyp
2024-11-18 15:21:34
in reply to nevent1q…4mwj

Bill Mill on Nostr: nprofile1q…56m2n `"type": "module"` is a node thing, the documentation lives here: ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqupkp7fd7rc3lrjg23r8gy0wc723vze7mxlx5984ut6zurjzpf5xsv56m2n (nprofile…6m2n) `"type": "module"` is a node thing, the documentation lives here: https://nodejs.org/api/packages.html#modules-packages

the main thing I think of it doing is telling node to expect a given .js file to be an ESM file (import, top level await, etc) rather than a commonjs file (require). You can use `.cjs` and `.mjs` in any node module, but the `type` tells node which the default is
Author Public Key
npub1k3cxq9qqnjeephe0f3dzs37ur9d60qwhvxasnvzalqxp23dktdgs8n3fyp