Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 1.29 KB

README.md

File metadata and controls

35 lines (23 loc) · 1.29 KB

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