"npm pack + extract" tool
$ npm install -g atool-pack
$ atool-pack module dir
eg:
$ atool-pack rcf ./
var pack = require("atool-pack");
pack(module, dir);
eg:
pack('rcf', './').then(() => {
console.log('success');
}).catch(err => {
conole.log(err);
})
Component is released under the MIT license.