Skip to content
Filter string characters.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.md
package.json
str-allow.js
test.js

README.md

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
Something went wrong with that request. Please try again.