utf8-length

0.0.1 • Public • Published

utf8-length

return the number of bytes in a unicode string

build status

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

Dependencies (0)

    Dev Dependencies (1)

    Package Sidebar

    Install

    npm i utf8-length

    Weekly Downloads

    25,170

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • nopersonsmodules