Skip to content

maxlath/unicode-scripts-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unicode-scripts-finder

There are 143,859 characters, with Unicode 13.0, covering 154 modern and historical scripts, as well as multiple symbol sets [wikipedia: List of Unicode characters]

Find which unicode scripts a text is using.

Status: WIP but already somewhat useful

Install

To use the JS module in a project:

npm i unicode-scripts-finder

To use the CLI, rather install it globally to make the command unicode-scripts-finder available in your $PATH:

npm i -g unicode-scripts-finder

Module

const unicodeScriptsFinder = require('unicode-scripts-finder')

unicodeScriptsFinder('Lorem ipsum dolor sit amet')
// => [ { label: 'Latin', count: 370 } ]

unicodeScriptsFinder('ἀπόστασις')
// => [ { label: 'Greek', count: 9 } ]

unicodeScriptsFinder('Lorem ipsum ἀπόστασις')
// => [ { label: 'Latin', count: 10 }, { label: 'Greek', count: 9 } ]

CLI

unicode-scripts-finder Lorem ipsum dolor sit amet
# => [
#   {
#     "label": "Latin",
#     "count": 22
#   }
# ]

About

find which unicode scripts a text is using

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy