node-get-ascii
v4.0.0
Published
Get ascii chars from a string - Node Module
Downloads
8
Readme
node-get-ascii
Get ascii chars from a string - Node Module
Note: v4
getPrintableAscii
is what earlier wasgetAscii
: 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>
npm i -g node-get-ascii
getPrintableAscii 'abc™¡™•¡∆∂ß˚爅å˜çåß˚¬˜defghijklmnop' 10
License
MIT
- © 2018 Git Faf
- © 2021 Anubhav