基于regexp的快速dom解析器
npm i dom-parser
AST螺丝刀
npm i recast -S
vuex数据持久化
vuex-persistedstate
js-base64
// 安装
npm install --save js-base64
// 引入
const Base64 = require('js-base64').Base64
Base64.decode("password");
Base64.encode("password");
browser-md5-file
https://github.com/forsigner/browser-md5-file
npm i browser-md5-file -S
import BMF from 'browser-md5-file';
const el = document.getElementById('upload');
const bmf = new BMF();
el.addEventListener('change', handle, false);
function handle(e) {
const file = e.target.files[0];
bmf.md5(
file,
(err, md5) => {
console.log('err:', err);
console.log('md5 string:', md5); // 97027eb624f85892c69c4bcec8ab0f11
},
progress => {
console.log('progress number:', progress);
},
);
}
您可以在md5成功之前中止它:bmf.abort();
Commander
https://www.npmjs.com/package/commander
npm i commander
node.js命令行接口的完整解决方案。
vue-virtual-scroll-list
https://www.npmjs.com/package/vue-virtual-scroll-list
npm i vue-virtual-scroll-list
vue虚拟滚动