graphemesplit
TypeScript icon, indicating that this package has built-in type declarations

2.6.0 • Public • Published

graphemesplit

npm version

A JavaScript implementation of the Unicode 16.0 grapheme cluster breaking algorithm. (UAX #29)

Installation

npm install graphemesplit

How to use

const split = require('graphemesplit')

split('Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍A̴̵̜̰͔ͫ͗͢L̠ͨͧͩ͘G̴̻͈͍͔̹̑͗̎̅͛́Ǫ̵̹̻̝̳͂̌̌͘!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞') // => ['Z͑ͫ̓ͪ̂ͫ̽͏̴̙̤̞͉͚̯̞̠͍','A̴̵̜̰͔ͫ͗͢','L̠ͨͧͩ͘','G̴̻͈͍͔̹̑͗̎̅͛́','Ǫ̵̹̻̝̳͂̌̌͘','!͖̬̰̙̗̿̋ͥͥ̂ͣ̐́́͜͞']

Author

Nao Yonashiro(@orisano)

License

MIT

References

foliojs/grapheme-breaker

Unicode® Standard Annex #29

GraphemeBreakProperty.txt

GraphemeBreakTest.txt

DerivedCoreProperties.txt

emoji-data.txt

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.6.028,843latest

Version History

VersionDownloads (Last 7 Days)Published
2.6.028,843
2.5.11,798
2.5.076
2.4.4108,648
2.4.339
2.4.2870
2.4.12
2.4.01
2.3.01
2.2.00
2.1.10
2.1.00
2.0.30
2.0.10
2.0.00
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i graphemesplit

Weekly Downloads

140,278

Version

2.6.0

License

MIT

Unpacked Size

19.3 kB

Total Files

12

Last publish

Collaborators

  • orisano