unicode-length
Get the length of unicode strings
Last updated 2 years ago by jviotti .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install unicode-length 
SYNC missed versions from official npm registry.

unicode-length

npm version dependencies Build Status

Installation

Install unicode-length by running:

$ npm install --save unicode-length

Documentation

Number unicodeLength.get(String input)

Get the length of a unicode string.

Example:

unicodeLength = require('unicode-length')
console.log(unicodeLength.get('汉字'))
# Outputs 2

Tests

Run the test suite by doing:

$ gulp test

Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

$ gulp lint

Support

If you're having any problem, please raise an issue on GitHub.

License

The project is licensed under the MIT license.

Current Tags

  • 2.1.0                                ...           latest (2 years ago)

8 Versions

  • 2.1.0                                ...           2 years ago
  • 2.0.2                                ...           6 years ago
  • 2.0.1                                ...           7 years ago
  • 2.0.0                                ...           8 years ago
  • 1.0.3                                ...           8 years ago
  • 1.0.2                                ...           8 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (3)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |