1.0.0 • Published 8 years ago
packagenpmjson v1.0.0
packagenpmjson
you know the json that the npm registry returns when you curl your package info?
this creates a npm compatable json document. you can use it as a component for private npm registries that doont use couch.
var packagenpmjson = require('packagenpmjson');
packagenpmjson([npm registry url],[path to package root],[path to tar produced by npm pack],function(err, json){
console.log(json);
});the console.log of the json will look something like this.
{
"maintainers" : [
"Ryan Day"
],
"readme" : "\n[