multibyte-substr
v0.1.1
Published
multibyte substr
Downloads
11
Maintainers
Readme
multibyte-substr
multibyte substr
Install
$ npm install --save multibyte-substr
Usage
const multibyteSubstr = require('multibyte-substr');
multibyteSubstr('牛丼', 1 ,2);
//=> '丼'
multibyteSubstr('牛丼', 0 , 4);
//=> '牛丼'
API
multibyteSubstr(input, [start, len])
input
Type: string
start
Type: number
len
Type: number
License
MIT © akameco