npm.io
2.0.2 • Published 1 year ago

remove-unprintable

Licence
MIT
Version
2.0.2
Deps
0
Size
4 kB
Vulns
0
Weekly
0
Stars
3

#remove-unprintable

Small npm module to remove all unprintable characters from a string

installation

	npm install remove-unprintable
	yarn add remove-unprintable

example/usage

var removeUnprintable = require("remove-unprintable");

var str = "\u0000foo";
console.log(removeUnprintable(str) === "foo"); // will print true;

Keywords