Icard/angular-clarity-master(work.../node_modules/text-segmentation
realSnehal 336a6a07d0 frnt 2024-07-16 20:53:22 +05:30
..
dist frnt 2024-07-16 20:53:22 +05:30
CHANGELOG.md frnt 2024-07-16 20:53:22 +05:30
LICENSE frnt 2024-07-16 20:53:22 +05:30
README.md frnt 2024-07-16 20:53:22 +05:30
package.json frnt 2024-07-16 20:53:22 +05:30
rollup.config.ts frnt 2024-07-16 20:53:22 +05:30

README.md

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.