multibyte-length

0.1.1 • Public • Published

multibyte-length Build Status

multibyte string length

Install

$ npm install --save multibyte-length

Usage

const multibyteLength = require('multibyte-length');
 
multibyteLength('abc');
//=> 3
 
multibyteLength('牛丼');
// => 4

API

multibyteLength(input)

input

Type: string

License

MIT © akameco

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i multibyte-length

    Weekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • akameco