str-allow

Filter string characters.

str-allow

Filter string characters.

stable

npm install str-allow

edge

npm install https://github.com/daxxog/str-allow/tarball/master
var strAllow = require('str-allow'),
    filter = strAllow('1234567890');
 
console.log(filter('a1bc2de3f')); //outputs 123