text-segmentation
text-segmentation ==============
Last updated 4 years ago by niklasvh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install text-segmentation 
SYNC missed versions from official npm registry.

text-segmentation

CI NPM Downloads NPM Version

A JavaScript library for Grapheme Breaking and identifying Grapheme Boundaries, implementing the Unicode Line Breaking Algorithm (UAX #29)

Installing

You can install the module via npm:

npm install text-segmentation

Example

import {splitGraphemes} from 'text-segmentation';

const graphemes =  splitGraphemes('Hello ????‍????‍????‍????!');

Testing

You can run the test suite with:

npm test

The library implements all the GraphemeBreakTest.txt tests.

Current Tags

  • 1.0.3                                ...           latest (4 years ago)

4 Versions

  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           5 years ago
  • 1.0.1                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 5
This Month 8
Last Day 0
Last Week 3
Last Month 3
Dependencies (1)
Dev Dependencies (17)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |