Install unicode-length
by running:
$ npm install --save unicode-length
Get the length of a unicode string.
Example:
unicodeLength = require('unicode-length')
console.log(unicodeLength.get('汉字'))
# Outputs 2
Run the test suite by doing:
$ gulp test
- Issue Tracker: github.com/jviotti/unicode-length/issues
- Source Code: github.com/jviotti/unicode-length
Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:
$ gulp lint
If you're having any problem, please raise an issue on GitHub.
The project is licensed under the MIT license.