utf8-length

返回 unicode 字符串的字节数。「return the number of bytes in a unicode string」

  • 所有者: substack/utf8-bytes
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

utf8-length

return the number of bytes in a unicode string

build status

browser support

example

var bytes = require('utf8-length');
console.log(bytes('¡dooq dǝǝq'));

result:

$ node example/beep.js
13

methods

var bytes = require('utf8-length')

bytes(string)

Return the number of bytes needed to store string.

install

With npm do:

npm install utf8-bytes

license

MIT

主要指标

概览
名称与所有者substack/utf8-bytes
主编程语言C
编程语言JavaScript (语言数: 1)
平台
许可证MIT License
所有者活动
创建于2012-06-18 23:23:24
推送于2022-09-13 03:36:21
最后一次提交2018-11-14 14:05:58
发布数2
最新版本名称 (发布于 2015-07-27 11:51:38)
第一版名称 (发布于 2015-07-26 23:33:04)
用户参与
星数50
关注者数3
派生数3
提交数13
已启用问题?
问题数2
打开的问题数1
拉请求数0
打开的拉请求数1
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?