unicode-length

WebJar for unicode-length

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

unicode-length
Last Version

Last Version

1.0.3
Release Date

Release Date

Type

Type

jar
Description

Description

unicode-length
WebJar for unicode-length
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jviotti/unicode-length

Download unicode-length

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/unicode-length/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>unicode-length</artifactId>
    <version>1.0.3</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-length/
implementation 'org.webjars.npm:unicode-length:1.0.3'
// https://jarcasting.com/artifacts/org.webjars.npm/unicode-length/
implementation ("org.webjars.npm:unicode-length:1.0.3")
'org.webjars.npm:unicode-length:jar:1.0.3'
<dependency org="org.webjars.npm" name="unicode-length" rev="1.0.3">
  <artifact name="unicode-length" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='unicode-length', version='1.0.3')
)
libraryDependencies += "org.webjars.npm" % "unicode-length" % "1.0.3"
[org.webjars.npm/unicode-length "1.0.3"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : punycode jar [1.3.2,2)
org.webjars.npm : strip-ansi jar [3.0.1,4)

Project Modules

There are no modules declared in this project.

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.

Versions

Version
1.0.3