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.
- Host: GitHub
- URL: https://github.com/afeiship/next-string-length
- Owner: afeiship
- License: mit
- Created: 2016-01-27T06:06:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-12-12T01:59:37.000Z (over 7 years ago)
- Last Synced: 2026-03-11T11:55:38.418Z (4 months ago)
- Topics: length, next, string
- Language: JavaScript
- Homepage: http://afeiship.github.io/next-lang-string
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```