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