An open API service indexing awesome lists of open source software.

https://github.com/afeiship/next-string-length

String helper based on next toolkit.
https://github.com/afeiship/next-string-length

length next string

Last synced: 2 months ago
JSON representation

String helper based on next toolkit.

Awesome Lists containing this project

README

          

# next-string-length
> Get string length

## resouces:
+ https://www.plus2net.com/javascript_tutorial/string-charcodeat.php
+ http://www.w3school.com.cn/jsref/jsref_charCodeAt.asp
+ https://github.com/simaQ/wx-f2/blob/master/src/index.js

## install:
```bash
npm install -S afeiship/next-string-length --registry=https://registry.npm.taobao.org
```

## usage:
```js
import 'next-string-length';

nx.stringLength('a'); //1
nx.stringLength('abc');//3
nx.stringLength('阿飞');//4
```