1.0.21 • Published 12 months ago
mx-util v1.0.21
安装
npm install -s mx-util
实例
const util = require('mx-util')
const enc = util.crypt.encode('wo shi zhangsan')
// 1Jy/QqIxNVWg/wfDi7vMt7xUhW1ukGeQKyGP6A==
const dec = util.crypt.decode(enc)
// wo shi zhangsan
const dic = { name: 'zhangsan', age: 16, sex: 'male' }
const ccc = util.object.filter(dic, 'name,age')
// { name: 'zhangsan', age: 16 }