bytes-counter:计算JS字符串中的字节

时间:2021-04-29 19:35:39
【文件属性】:
文件名称:bytes-counter:计算JS字符串中的字节
文件大小:12KB
文件格式:ZIP
更新时间:2021-04-29 19:35:39
library string bytes couter JavaScript 字节计数器 计算JS字符串中的字节数 安装 $ npm install bytes-counter $ bower install bytes-counter 用 lib的用法非常简单。 调用bytesCounter的count方法并传递string 。 如果传递了其他类型,则该方法将尝试JSON.stringify传递的参数。 var bytes = bytesCounter . count ( str ) ; 测验 安装全局依赖 $ npm install -g grunt-cli bower 运行单元测试 $ grunt test 运行代码覆盖率 $ grunt cover 使用ci系统的报告运行所有测试 $ grunt ci 贡献 不用我们分发正式的样式指南,只需坚持现有的编程样式即可。 请创建描述性提交消息。 我们使用git钩子根据这些来验证提交消息。 使用您自己的扩展程序或
【文件预览】:
bytes-counter-master
----.travis.yml(147B)
----bytes-counter.js(490B)
----package.json(1KB)
----test()
--------bytes-counter.spec.js(518B)
----.bowerrc(61B)
----bytes-counter.min.js.map(427B)
----bytes-counter.min.js(451B)
----LICENSE(1KB)
----Gruntfile.js(5KB)
----.npmignore(51B)
----.gitignore(41B)
----CHANGELOG.md(342B)
----lib()
--------bytes-counter.js(492B)
----README.md(4KB)
----.jshintrc(501B)
----bower.json(728B)
----.editorconfig(415B)
----.gitattributes(12B)
----validate-commit-msg.js(3KB)

网友评论