char-subsets
v0.3.1
Published
Lists of characters of common subsets (like Google Fonts API uses them)
Downloads
16
Maintainers
Readme
char-subsets
Lists of characters of common subsets (like Google Fonts API uses them)
Usage
npm install char-subsets
var subsets = require('char-subsets')();
console.dir(subsets);
yields an array with subset name per key and their unicode characters
[
greek: '\n !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Æ×ØÞßæð÷øþıŒœˆ˚˜΄΅·ΓΔΘΛΞΠΣΦΨΩαβγδεζηθιλξπρςστυφψωϑϒϖ–—‘’‚“”„•‹›⁄⁴€− ÐÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöùúûüýÿΆΈΉΊΌΎΏΐΑΒΕΖΗΙΚΜΝΟΡΤΥΧΪΫάέήίΰκομνχϊϋόύώ',
'greek-ext': '\n !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Æ×ØÞßæð÷øþıŒœˆ˚˜΄΅·ΓΔΘΛΞΠΣΦΨΩαβγδεζηθιλξπρςστυφψωϑϒϖ–—‘’‚“”„•‹›⁄⁴€− ÐÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöùúûüýÿΆΈΉΊΌΎΏΐΑΒΕΖΗΙΚΜΝΟΡΤΥΧΪΫάέήίΰκομνχϊϋόύώὍ',
latin: '\n !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿Æ×ØÞßæð÷øþıŒœˆ˚˜–—‘’‚“”„•‹›⁄⁴€− ÐÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöùúûüýÿ'
...
]
Available subsets
(as used in Google Fonts API)
- greek
- greek-ext
- latin
- vietnamese
- cyrillic-ext
- latin-ext
- cyrillic
Note
Accessing array keys containing '-':
subsets['latin-ext']
It is also trivially possible to convert the unicode characters into unicode points.