Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strarsis/char-subsets
Lists of characters of common subsets (like Google Fonts API uses them)
https://github.com/strarsis/char-subsets
Last synced: 13 days ago
JSON representation
Lists of characters of common subsets (like Google Fonts API uses them)
- Host: GitHub
- URL: https://github.com/strarsis/char-subsets
- Owner: strarsis
- License: mit
- Created: 2015-10-26T15:18:30.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-09T19:07:14.000Z (over 8 years ago)
- Last Synced: 2024-10-18T23:55:10.323Z (about 1 month ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# char-subsets
Lists of characters of common subsets (like Google Fonts API uses them)[![david](https://david-dm.org/strarsis/char-subsets.svg)](https://david-dm.org/strarsis/char-subsets)
Usage
-----
``` sh
npm install char-subsets
````
``` js
var subsets = require('char-subsets')();
console.dir(subsets);
````
yields an array with subset name per key and their unicode characters
``` js
[
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
- cyrillicNote
----
Accessing array keys containing '-':
``` js
subsets['latin-ext']
````It is also trivially possible to convert the unicode characters into unicode points.