{"name":"module","version":"2.0.0","description":"Generate the minimal skeleton for a new node.js module/package.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"main":"dist/index.js","types":"dist/index.d.ts","bin":{"module":"dist/cli.js"},"scripts":{"build":"tsc","prebuild":"rimraf dist","start":"npm run build && node dist/cli.js foo -s esm -i file-ext"},"dependencies":{"kleur":"^4.1.5","tildify":"^3.0.0","yargs":"^18.0.0"},"devDependencies":{"@types/node":"^24.9.1","@types/yargs":"^17.0.34","rimraf":"^6.0.1","typescript":"^5.9.3"},"keywords":["node","module","package","skeleton","boilerplate","scaffold","generator","cli","commonjs","esm"],"gitHead":"76017a9ecdfa60d8120f38cb5b509b915f1c0e01","_id":"module@2.0.0","bugs":{"url":"https://github.com/lukehorvat/module/issues"},"homepage":"https://github.com/lukehorvat/module#readme","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-3ZjXmzvknNRH1iiJAMDBw8xqLKd2ZB4lJH20phnb6UxjhLjk6ufFrB0s0LEi7r0FzvDz+tE+WM5CyRWJjV+wtQ==","shasum":"0f65d65160c00e04ac1b11cb92afa3160898f66c","tarball":"http://registry-npm.ywwl.com/module/download/module-2.0.0.tgz","fileCount":7,"unpackedSize":9626,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIG1l3BSgplI1hbDLJNUrl7OBUj+7hHXHbgH3KNdZvW89AiEA68khjYyx3nIOVXi6X7jKbBf4Y9o8PVTViKriZyPOkHY="}],"size":3354,"noattachment":false,"key":"/module/-/module-2.0.0.tgz"},"_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"directories":{},"maintainers":[{"name":"lukehorvat","email":"lukehorvat@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/module_2.0.0_1761509947431_0.07203920260734287"},"_hasShrinkwrap":false,"readme":"# module [![npm version](https://img.shields.io/npm/v/module.svg?style=flat-square)](https://www.npmjs.com/package/module)\n\nGenerate the minimal skeleton for a new node.js module/package.\n\n![](./screenshot.png)\n\n## Usage\n\nFor example, to create a module in the current working directory:\n\n```sh\n$ npx module\n```\n\nTo create a module in another directory, specify a relative or absolute path:\n\n```sh\n$ npx module foo\n```\n\nThe `--system` flag can be provided to control whether the module system is ESM (the default if flag not specified) or CommonJS:\n\n```sh\n$ npx module foo --system esm\n```\n\n```sh\n$ npx module foo --system cjs\n```\n\nAnd the `--identifier` flag can be provided to control whether the module system is identified by file extension (the default if flag not specified), package.json `type` field, or implicitly from code syntax:\n\n```sh\n$ npx module foo --system esm --identifier file-ext\n```\n\n```sh\n$ npx module foo --system cjs --identifier package-type\n```\n\n```sh\n$ npx module foo --system esm --identifier syntax\n```\n\nTo understand these flags better, see [Determining module system](https://nodejs.org/api/packages.html#determining-module-system) in the node.js docs.\n","publish_time":1761509947622,"_cnpm_publish_time":1761509947622,"dist-tags":{"latest":"2.0.0"}}