1.3.0 • Published 2 months ago

ascii-name v1.3.0

Weekly downloads
23
License
MIT
Repository
github
Last release
2 months ago

Node.js Package

License npm

ascii-name

Return name of ascii code

Important

Feel free to use it. Now it supports English only. Make a Pull Request ascii-name if needed. (e.g. Multiple language)

Install

$ npm install ascii-name

Usage

const asciiName = require('ascii-name');

// string is supported
asciiName.getName(':');     //return 'colon'

// ascii code index is supported (Decimal)
asciiName.getName(53);      //return 'colon'

// multiple names supported
asciiName.getName('#');     //return 'number sign'
asciiName.getName('#', 0);  //return 'number sign'
asciiName.getName('#', 1);  //return 'pound' (see ascii-name_en.json)

// multi language supported
asciiName.setLanguage('ko') // set language code
asciiName.getLanguage();    // return current language code (Default: en)

asciiText.getName(':')      // return '콜론' from ascii-name_ko.json
asciiText.getName(0)        // return 'null' from ascii-name_en.json (default) as ascii-name_ko.json does not have the value of 0

Supported Languages

  • en: English
  • fr: French
  • es: Spanish
  • hi: Hindi
  • ar: Arabic
  • ko: Korean
  • zh: Chinese
  • ja: Japanese

License

MIT License © Heeseong Yoo

1.3.0

2 months ago

1.2.0

7 months ago

1.1.10

2 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.1

4 years ago