1.0.0 • Published 4 years ago

laotang-abcd v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

安装方式

npm i laotang-abcd

使用方式

const abcd = require('laotang-abcd');

// 把字符串首字母转大写
// 1. abcd.ucfirst(str)
abcd.ucfirst('hello'); // Hello

// 将查询字符串转换成对象
// 2. abcd.parse('id=1&name=zs&age=20')
abcd.parse('id=1&name=zs&age=20') // {id: 1, name: 'zs', age: 20}

许可证

ISC