Skip to content

jnvm/lazy-unicode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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.

About

Access to all 128,172 unicode characters by block in < 8kb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •