node package manager
Easy collaboration. Discover, share, and reuse code in your team. Create a free org »

str-allow

str-allow

Filter string characters.

Install

stable

npm install str-allow

edge

npm install https://github.com/daxxog/str-allow/tarball/master

Example

var strAllow = require('str-allow'),
    filter = strAllow('1234567890');
 
console.log(filter('a1bc2de3f')); //outputs 123