Quickly create a npm package for node, within TypeScript.
Inspired by npm-create. If you just want to create a normal npm package, please use it.
npm install npm-create-node
// yarn add npm-create-node
pkgGenerator.createPkg('example', process.cwd()).then((res) => {
if (res.success) {
//...
}
});
npm install npm-create-node -g
npm-create-node example --path ${target_path}