text-sanitizer

0.0.3 • Public • Published

text-sanitizer

Usage example:

var sanitize = require('text-sanitizer');
 
var input = "\n\n Some text with multiple new \n\n\n lines and \t\t\t tabs."
 
input = sanitize(input, ['trim']);
 
// Output will be
// Some text with multiple new \n lines and \t tabs.

Readme

Keywords

none

Package Sidebar

Install

npm i text-sanitizer

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • sojjer