lazy-unicode
v1.0.9
Published
Access to all 128,172 unicode characters by block in < 8kb
Downloads
71
Maintainers
Keywords
Readme
Lazy Unicode
Access to all 128,172 unicode characters by block in < 8kb.
For reference, a string of all unicode characters in a text file is approximately 1mb.
Since unicode blocks are contiguous, this stores only start and length values per block, and getters construct the full block string once upon first invocation and immediately overwrite the property to the static string.
Install
npm i lazy-unicode
Example
> var u=require("lazy-unicode-blocks")
undefined
> u.MAHJONG_TILES //substitute for any block name, take a look by tabbing at u.|
'🀀🀁🀂🀃🀄🀅🀆🀇🀈🀉🀊🀋🀌🀍🀎🀏🀐🀑🀒🀓🀔🀕🀖🀗🀘🀙🀚🀛🀜🀝🀞🀟🀠🀡🀢🀣🀤🀥🀦🀧🀨🀩🀪🀫🀰'
All blocks are available.