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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?