{"_id":"module","_rev":"4641964","name":"module","description":"Generate the minimal skeleton for a new node.js module/package.","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"lukehorvat","email":""}],"time":{"modified":"2026-04-10T19:59:28.000Z","created":"2012-02-01T08:15:41.632Z","2.0.0":"2025-10-26T20:19:07.622Z","1.2.5":"2016-04-15T07:06:17.579Z","1.2.4":"2016-04-15T06:36:39.159Z","1.2.3":"2016-04-15T04:47:22.131Z","1.2.2":"2016-04-15T02:37:41.270Z","1.2.1":"2016-04-14T14:49:18.678Z","1.2.0":"2016-04-14T14:15:27.062Z","1.1.0":"2016-04-14T10:23:47.062Z","1.0.0":"2016-04-14T05:14:49.438Z","0.0.1":"2012-02-01T08:15:41.632Z"},"users":{},"author":{"name":"Luke Horvat"},"repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"versions":{"2.0.0":{"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":{"shasum":"0f65d65160c00e04ac1b11cb92afa3160898f66c","size":3354,"noattachment":false,"key":"/module/-/module-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-2.0.0.tgz"},"_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"directories":{},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/module_2.0.0_1761509947431_0.07203920260734287"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-26T20:19:07.622Z","publish_time":1761509947622,"_source_registry_name":"default","_cnpm_publish_time":1761509947622},"1.2.5":{"name":"module","version":"1.2.5","description":"Generate the minimal skeleton/boilerplate for a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./dist/index.js","bin":{"module":"./dist/cli.js"},"scripts":{"build":"rimraf dist && babel lib -d dist","prepublish":"npm run build"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{"babel-cli":"6.7.5","babel-preset-es2015":"6.6.0","rimraf":"2.5.2"},"keywords":["npm","node","module","package","skeleton","boilerplate","scaffold","generator","generic","cli"],"babel":{"presets":["es2015"]},"gitHead":"503b7a2834a565f1f52743a85ed32010da721665","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.5","_shasum":"b503eb06cdc13473f56818426974cde7ec59bf15","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.1","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"b503eb06cdc13473f56818426974cde7ec59bf15","size":3044,"noattachment":false,"key":"/module/-/module-1.2.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.5.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.2.5.tgz_1460703977076_0.310543111525476"},"directories":{},"publish_time":1460703977579,"_hasShrinkwrap":false,"_cnpm_publish_time":1460703977579,"_cnpmcore_publish_time":"2021-12-16T15:24:55.913Z"},"1.2.4":{"name":"module","version":"1.2.4","description":"Generate the minimal skeleton/boilerplate for a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./dist/index.js","bin":{"module":"./dist/cli.js"},"scripts":{"build":"rimraf dist && babel lib -d dist","prepublish":"npm run build"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{"babel-cli":"6.7.5","babel-preset-es2015":"6.6.0","rimraf":"2.5.2"},"keywords":["npm","node","module","package","skeleton","boilerplate","scaffold","generator","generic","cli"],"babel":{"presets":["es2015"]},"gitHead":"d8e7a0bcf595a2067eeba5eabcce5a925f6a8b91","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.4","_shasum":"040c9213651bffbd3f5e4b4d8b105d4e896d5890","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.1","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"040c9213651bffbd3f5e4b4d8b105d4e896d5890","size":3040,"noattachment":false,"key":"/module/-/module-1.2.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.4.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.2.4.tgz_1460702198604_0.9361961053218693"},"directories":{},"publish_time":1460702199159,"_hasShrinkwrap":false,"_cnpm_publish_time":1460702199159,"_cnpmcore_publish_time":"2021-12-16T15:24:56.117Z"},"1.2.3":{"name":"module","version":"1.2.3","description":"Generate the minimal skeleton/boilerplate for a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./dist/index.js","bin":{"module":"./dist/cli.js"},"scripts":{"build":"rimraf dist && babel lib -d dist","prepublish":"npm run build"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{"babel-cli":"6.7.5","babel-preset-es2015":"6.6.0","rimraf":"2.5.2"},"keywords":["npm","node","module","package","skeleton","boilerplate","scaffold","generator","generic","cli"],"babel":{"presets":["es2015"]},"gitHead":"bcc4ee01125a14b6139bca563e61f681358a007c","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.3","_shasum":"7e18f8647123d7cbe09b0cef380e4ad0b1778427","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.1","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"7e18f8647123d7cbe09b0cef380e4ad0b1778427","size":2979,"noattachment":false,"key":"/module/-/module-1.2.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.3.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.2.3.tgz_1460695641550_0.8256294671446085"},"directories":{},"publish_time":1460695642131,"_hasShrinkwrap":false,"_cnpm_publish_time":1460695642131,"_cnpmcore_publish_time":"2021-12-16T15:24:56.366Z"},"1.2.2":{"name":"module","version":"1.2.2","description":"Generate the minimal skeleton/boilerplate for a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./dist/index.js","bin":{"module":"./dist/cli.js"},"scripts":{"build":"rimraf dist && babel lib -d dist","prepublish":"npm run build"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{"babel-cli":"6.7.5","babel-preset-es2015":"6.6.0","rimraf":"2.5.2"},"keywords":["npm","node","module","package","skeleton","boilerplate","scaffold","generator","generic","cli"],"babel":{"presets":["es2015"]},"gitHead":"56dd2c3ce1f9886f04a883b93128165874536f57","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.2","_shasum":"5499fb9968528c8290ca3c1f46f7433686cbfd56","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.1","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"5499fb9968528c8290ca3c1f46f7433686cbfd56","size":2862,"noattachment":false,"key":"/module/-/module-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.2.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/module-1.2.2.tgz_1460687857695_0.460355720249936"},"directories":{},"publish_time":1460687861270,"_hasShrinkwrap":false,"_cnpm_publish_time":1460687861270,"_cnpmcore_publish_time":"2021-12-16T15:24:56.651Z"},"1.2.1":{"name":"module","version":"1.2.1","description":"Generate the minimal skeleton/boilerplate for a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./index.js","bin":{"module":"./cli.js"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{},"keywords":["npm","node","module","package","skeleton","boilerplate","scaffold","generator","generic","cli"],"gitHead":"9679f7170762b187f748b57c207a34506ddb7941","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.1","scripts":{},"_shasum":"9790ec4b3fcc22d9da9c40da5bb994e34ae94520","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.6.0","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"9790ec4b3fcc22d9da9c40da5bb994e34ae94520","size":2497,"noattachment":false,"key":"/module/-/module-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.1.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.2.1.tgz_1460645358039_0.38765287306159735"},"directories":{},"publish_time":1460645358678,"_hasShrinkwrap":false,"_cnpm_publish_time":1460645358678,"_cnpmcore_publish_time":"2021-12-16T15:24:57.010Z"},"1.2.0":{"name":"module","version":"1.2.0","description":"Generate the minimal skeleton/boilerplate of a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"main":"./index.js","bin":{"module":"./cli.js"},"dependencies":{"chalk":"1.1.3","concat-stream":"1.5.1","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{},"keywords":["npm","node","module","package","generic","minimal","barebones","skeleton","boilerplate","scaffold","generator"],"gitHead":"86aaffd406d4df3fbb9ff2cae61e610c83d98e2e","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.2.0","scripts":{},"_shasum":"ea8bbc232ee491b69f6ac89452dd919d20632758","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.6.0","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"ea8bbc232ee491b69f6ac89452dd919d20632758","size":2463,"noattachment":false,"key":"/module/-/module-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.2.0.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.2.0.tgz_1460643326459_0.1889464387204498"},"directories":{},"publish_time":1460643327062,"_hasShrinkwrap":false,"_cnpm_publish_time":1460643327062,"_cnpmcore_publish_time":"2021-12-16T15:24:57.202Z"},"1.1.0":{"name":"module","version":"1.1.0","description":"Generate the minimal skeleton/boilerplate of a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"bin":{"module":"./index.js"},"dependencies":{"chalk":"1.1.3","lodash.template":"4.2.4","map-stream":"0.0.6","tildify":"1.2.0","vinyl-fs":"2.4.3","yargs":"4.6.0"},"devDependencies":{},"keywords":["npm","node","module","package","generic","minimal","barebones","skeleton","boilerplate","scaffold","generator"],"gitHead":"b0e832737313f9f6f956570880a28306e62820b7","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.1.0","scripts":{},"_shasum":"d2a29b47823850b23ee05cf245232cfb3310337f","_from":".","_npmVersion":"3.8.5","_nodeVersion":"5.6.0","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"d2a29b47823850b23ee05cf245232cfb3310337f","size":2287,"noattachment":false,"key":"/module/-/module-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.1.0.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/module-1.1.0.tgz_1460629426582_0.8534006068948656"},"directories":{},"publish_time":1460629427062,"_hasShrinkwrap":false,"_cnpm_publish_time":1460629427062,"_cnpmcore_publish_time":"2021-12-16T15:24:57.424Z"},"1.0.0":{"name":"module","version":"1.0.0","description":"Generate the minimal skeleton/boilerplate of a new Node.js module.","author":{"name":"Luke Horvat"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/lukehorvat/module.git"},"bugs":{"url":"https://github.com/lukehorvat/module/issues"},"bin":{"module":"./index.js"},"dependencies":{"chalk":"1.1.3","copy":"0.2.0","mkdirp":"0.5.1","yargs":"4.6.0"},"devDependencies":{},"keywords":["npm","node","module","package","generic","minimal","barebones","skeleton","boilerplate","scaffold","generator"],"gitHead":"fcd82332ccbb760cdc648d8fc1ff9c40260d43f7","homepage":"https://github.com/lukehorvat/module#readme","_id":"module@1.0.0","scripts":{},"_shasum":"0141a2cb31a0c55763aecd0521a4a821ac7684c3","_from":".","_npmVersion":"3.8.2","_nodeVersion":"5.7.1","_npmUser":{"name":"lukehorvat","email":"lukehorvat@gmail.com"},"dist":{"shasum":"0141a2cb31a0c55763aecd0521a4a821ac7684c3","size":2107,"noattachment":false,"key":"/module/-/module-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-1.0.0.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/module-1.0.0.tgz_1460610886467_0.4504848856013268"},"directories":{},"publish_time":1460610889438,"_hasShrinkwrap":false,"_cnpm_publish_time":1460610889438,"_cnpmcore_publish_time":"2021-12-16T15:24:57.672Z"},"0.0.1":{"name":"module","description":"browser side module manager.","version":"0.0.1","author":{"name":"Devrim Yasar","email":"devrim@koding.com"},"contributors":[{"name":"Chris Thorn","email":"chris@koding.com"}],"keywords":["require","requirejs"],"repository":{"type":"git","url":"git://github.com/koding/modulejs.git"},"main":"index","engines":{"node":">= 0.2.9 < 0.7.0"},"subdomain":"module","scripts":{"start":"index.js"},"_npmUser":{"name":"devrim","email":"devrim@koding.com"},"_id":"module@0.0.1","dependencies":{},"devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.106","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"04cc3763d3dbc4de8cf5f23a4e5d01b739f204ae","size":10240,"noattachment":false,"key":"/module/-/module-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/module/download/module-0.0.1.tgz"},"maintainers":[{"name":"lukehorvat","email":""}],"directories":{},"publish_time":1328084141632,"_hasShrinkwrap":false,"_cnpm_publish_time":1328084141632,"_cnpmcore_publish_time":"2021-12-16T15:24:57.906Z"}},"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","_attachments":{},"homepage":"https://github.com/lukehorvat/module#readme","bugs":{"url":"https://github.com/lukehorvat/module/issues"},"license":"MIT"}