multibyte-length

multibyte length

Usage no npm install needed!

<script type="module">
  import multibyteLength from 'https://cdn.skypack.dev/multibyte-length';
</script>

README

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