1.0.0 • Published 6 years ago

byteconter v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

byteconter

一个用来计算字符串字节数的工具函数,使用场景比如 在http请求中拿到返回消息体后计算消息体字节大小。

Install

    $ npm install byteconter -S

Usage

可见项目example/test.js

let byteCount = require('byteconter');
console.log(byteCount('Hello 世界~!')); //    

LICENSE

ISC