node package manager
It’s your turn. Help us improve JavaScript. Take the 2017 JavaScript Ecosystem Survey »


Description build status

For the module-driven: quickly create a new node.js module based on a template folder in ~/.config/module-driven.


$ npm install -g module-driven


First create yourself the directory for the template folder.

$ mkdir -p ~/.config/moduleDriven

Now populate the folder with the files your template files. Use the .mdtmpl extension for any files you want to parameterize. These files will be treated as handlebars templates.

Example template file (packages.json.mdtmpl)

  "name": "{{name}}",
  "description": "{{description}}",
  "version": "0.0.1",
  "repository": {
    "url": "git://{{name}}.git"
  "main": "index.js",
  "scripts": {
    "test": "tap test/*.js"
  "dependencies": {
  "devDependencies": {
    "tap": "~0.4.3",
    "tape": "~1.0.2"

I've included my template folder as an example.


moduleDriven my-new-nodejs-module-name

Note that for convenience, "name" is bound to the folder name - "my-new-nodejs-module-name" in the above case.