node-get-ascii

4.0.0 • Public • Published

node-get-ascii

Get ascii chars from a string - Node Module

Note: v4 getPrintableAscii is what earlier was getAscii: use it. returns string with charCode [32, 127). getAscii returns string with charCode [0, 127].

Usage

as library

var getPrintableAscii = require('./').getPrintableAscii

getPrintableAscii('abcdefghijklmnop', 10)
'abcdefghij'

getPrintableAscii('abcdefghijklmnop')
'abcdefghijklmnop'

getPrintableAscii('abc™¡™•¡∆∂ß˚爅å˜çåß˚¬˜defghijklmnop')
'abcdefghijklmnop'

getPrintableAscii('abc™¡™•¡∆∂ß˚爅å˜çåß˚¬˜defghijklmnop', 10)
'abcdefghij'

as command line utility

getPrintableAscii <string> <number|optional,default=100>

  1. npm i -g node-get-ascii
  2. getPrintableAscii 'abc™¡™•¡∆∂ß˚爅å˜çåß˚¬˜defghijklmnop' 10

License

MIT

  • © 2018 Git Faf
  • © 2021 Anubhav

Readme

Keywords

Package Sidebar

Install

npm i node-get-ascii

Weekly Downloads

3

Version

4.0.0

License

MIT

Unpacked Size

7.43 kB

Total Files

10

Last publish

Collaborators

  • iamanubhavsaini
  • git.faf