Axel Rauschmayer on Nostr: Node.js—I just learned that there is: npm init --init-type=module --yes But it ...
Node.js—I just learned that there is:
npm init --init-type=module --yes
But it doesn’t help much. I’ll probably continue to use `npm init` without that flag and change "commonjs" to "module" manually.
It feels like npm could switch to "module" as the default now.
Published at
2025-05-19 19:38:08 UTCEvent JSON
{
"id": "2b79199f1cc50d7f28f0f65f86c0d67e9f8fd429df08456cc597b6679f6ee6b0",
"pubkey": "f757585053520644e2ce9e8c1dbb9dccaedb41a58cec71ac4e94257c6ce1e52b",
"created_at": 1747683488,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/rauschma/statuses/114536185115641730",
"activitypub"
],
[
"client",
"Mostr",
"31990:6be38f8c63df7dbf84db7ec4a6e6fbbd8d19dca3b980efad18585c46f04b26f9:mostr",
"wss://relay.mostr.pub"
]
],
"content": "Node.js—I just learned that there is:\n\nnpm init --init-type=module --yes\n\nBut it doesn’t help much. I’ll probably continue to use `npm init` without that flag and change \"commonjs\" to \"module\" manually.\n\nIt feels like npm could switch to \"module\" as the default now.",
"sig": "e9060aaea12f3dbbbe7b80fbde5d391175f42d4d3b06264ef4f111721df49a213f68c7e4dfa9e8318b456f770ab6540f2a09f7ed72d24aa21dfb028310e25458"
}