string-identifer
v1.0.1
Published
idenify the type of your variable , and what it contain , using regax
Downloads
5
Maintainers
Readme
string-identifer
Identifey the content of your string by using regax
Installation
To install string generator, use npm:
npm install string-identifer
Usage
var identify = require("string-identifer");
console.log(identify.options) // log all the avalible options and what they do
console.log(identify.expressions) // log all the RegExp
Options
identify.addCustomExpression(name, string, explantion); // add a custom RegExp // explantion is optional
identify.removeExpression(name); //remove an expression
identify.validateString(name, str); //name of the RegExp you want to use , string to be checked