https://github.com/small-tech/npm-init-es6
A blank template for quickly scaffolding free and open Node.js ES Modules (ESM) projects
https://github.com/small-tech/npm-init-es6
esm js node npm
Last synced: about 2 months ago
JSON representation
A blank template for quickly scaffolding free and open Node.js ES Modules (ESM) projects
- Host: GitHub
- URL: https://github.com/small-tech/npm-init-es6
- Owner: small-tech
- License: isc
- Created: 2021-08-02T11:26:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-02T12:57:49.000Z (over 3 years ago)
- Last Synced: 2025-01-10T02:24:36.753Z (3 months ago)
- Topics: esm, js, node, npm
- Language: JavaScript
- Homepage:
- Size: 9.77 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# npm init es6
To initialise a free and open ESM project (`"type"="module"`) in Node.js, simply issue the following command:
```shell
npm init es6
```I made this as an alternative to `npm init -y` (which produces a _package.json_ file for a CommonJS project by default) because I was sick of (forgetting to) add the type declaration into the package file manually every time.
This is the _package.json_ file it creates:
```json
{
"name": "",
"version": "1.0.0",
"description": "",
"main": "index.js",
"type": "module",
"license": "AGPL-version-3.0",
"private": false,
"engines": {
"node": ">= 14.0.0",
"npm": ">= 6.0.0"
},
"homepage": "",
"repository": {
"type": "git",
"url": ""
},
"bugs": "",
"keywords": [],
"author": {
"name": "",
"email": "",
"url": ""
},
"contributors": [],
"scripts": {
"dev": "",
"test": ""
},
"dependencies": {},
"devDependencies": {}
}
```## Like this? Fund us!
[Small Technology Foundation](https://small-tech.org) is a tiny, independent not-for-profit.
We exist in part thanks to patronage by people like you. If you share [our vision](https://small-tech.org/about/#small-technology) and want to support our work, please [become a patron or donate to us](https://small-tech.org/fund-us) today and help us continue to exist.
## Copyright
Copyright © 2021-present [Aral Balkan](https://ar.al), [Small Technology Foundation](https://small-tech.org).
## License
[ISC](./LICENSE)