4.0.0 • Published 3 years ago

node-get-ascii v4.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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