1.0.0 • Published 11 years ago

stripcc v1.0.0

Weekly downloads
7
License
-
Repository
github
Last release
11 years ago

stripcc

Node.JS string module for stripping control-characters from string. Native and pure implementation.

var stripcc = require('stripcc');
console.log(stripcc('he\u0001llo'));

Output:

hello

Installation

$ npm install stripcc

Description

Module provides single function that removes non-printable control characters from strings. It has native and pure implementation.

More information

It removes characters from C0 and C1 sets except for CR('\r'), LF('\n'), tab('\t') and space(' ').