pathman/npm/index.js

13 lines
308 B
JavaScript
Raw Permalink Normal View History

2019-08-09 09:39:18 +00:00
'use strict';
var spawner = require('./lib/exec.js');
module.exports = spawner;
module.exports.install = require('./lib/install.js');
if (require.main === module) {
// node index.js --foo bar => [ '--foo', 'bar' ]
spawner(process.argv.slice(2)).catch(function(err) {
console.error(err.message);
});
}