Speckled band breaks string on chunks depending on code ranges
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.eslintignore
.eslintrc.js
Readme.md
index.js
package.json
run.js

Readme.md

speckled-band.js

"Oh, my God! Helen! It was the band! The speckled band!"

Speckled band breaks a string on chunks depending on code ranges

Installation

    npm install --save speckled-band

API

    var band = require('speckled-band');
    let code = 'zh'
    let sentence = 'some text: 2017年上半年, other text'
    band(code, sentence, function(err, results) {
       // process results
    })
[ { sp: 'some text: 2017' },
  { cl: '年上半年' },
  { sp: ', other text' } ]

License

GNU GPL