npm

Need private packages and team management tools?Check out npm Orgs. »

lazy-unicode

1.0.9 • Public • Published

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.

Keywords

install

npm i lazy-unicode

Downloadsweekly downloads

13

version

1.0.9

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability