1.0.3 • Published 5 years ago
filter-control v1.0.3
filter-control
filter the control code in ASSCII Characters,see : https://zh.wikipedia.org/wiki/%E6%8E%A7%E5%88%B6%E5%AD%97%E7%AC%A6 for more detail
use
npm i filter-control
// demo
const filterControl = require('../src/index.js')
// or something user input
const str = 'abc\ndef'
// \n got filtered
const res= filterControl(str)
demo
node ./demo/index.js
test
npm run test