Auto generate wechat weapp modules
$ npm install generate-weapp-module --save
const generate = require('generate-weapp-module');
const res = generate({
root: __dirname,
name: 'demo'
});
console.log(res);
Type: Object
Type: String
generated file path.