Skip to content

Instantly share code, notes, and snippets.

@johannesboyne
Created December 9, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johannesboyne/7880262 to your computer and use it in GitHub Desktop.
Save johannesboyne/7880262 to your computer and use it in GitHub Desktop.
{
"name" : basename.replace(/^node-/, ''),
"version" : "0.0.0",
"description" : prompt('description, what are you working on?', ''),
"main" : prompt('entry point', 'index.js'),
"bin" : function (cb) {
var path = require('path');
var fs = require('fs');
var exists = fs.exists || path.exists;
exists('bin/cmd.js', function (ex) {
var bin = {};
if (ex) bin[basename.replace(/^node-/, '')] = 'bin/cmd.js';
cb(null, bin);
});
},
"directories" : {
"example" : "example",
"test" : "test"
},
"dependencies" : {},
"devDependencies" : {
"tap" : "~0.2.5"
},
"scripts" : {
"test" : "tap test/*.js"
},
"repository" : {
"type" : "git",
"url" : "git://github.com/johannesboyne/" + basename + ".git"
},
"homepage" : "https://github.com/johannesboyne/" + basename,
"keywords" : prompt(function (s) { return s.split(/\s+/) }),
"author" : {
"name" : "Johannes Boyne",
"email" : "johannes@boyne.de"
},
"license" : "MIT",
"engine" : { "node" : ">=0.6" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment