npm init extended - a better
npm init
npx npm-init-ex@latest
-
Runs
npm init -y
-
Modifies the
package.json
- Sets version to
0.0.0
(Better fornp
) - Sets license to
MIT
- Adds
main
,bin
andfiles
fields (Assumes adist
folder) - Sets
node
inengines
to>=20
- Adds
type: "module"
- Sorts the fields
- Creates
.npmrc
withsave-exact=true