2.0.5 • Published 9 years ago

varlidator v2.0.5

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
9 years ago

Build Status Code Climate Test Coverage

Varlidator

JavaScript variable identifier validation. Try/Catch a new Function() which defines and returns a Boolean to a variable name.

JSPerf comparsion between valid and invalid variable names.

http://jsperf.com/varlidator-valid-vs-invalid

Install

npm install varlidator --save

Usage

var varlidate = require('varlidator');

var isValid = varlidate('@');
// returns: false

isValid = varlidate('a');
// returns: true

How to develop

npm install
grunt

How to build (before publishing)

npm install
grunt build

Alternatives

2.0.5

9 years ago

2.0.4

9 years ago

2.0.3

9 years ago

2.0.2

9 years ago

2.0.1

9 years ago

2.0.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago