1.0.7 • Published 8 years ago
mogu-mops v1.0.7
README
prepare
install dependencies
npm i
开发注意事项
modify file node_modules/tough-cookie-filestore/lib/filestore.js line 138
将异步执行方式改成同步执行
function saveToFile(filePath, data, cb) {
var dataJson = JSON.stringify(data);
// fs.writeFile(filePath, dataJson, function (err) {
// if (err) throw err;
// cb();
// });
fs.writeFileSync(filePath, dataJson);
}
help docs
mops -h
prepare config.json file
mops -l
1.0.7
8 years ago