2.0.5 • Published 10 years ago

varlidator v2.0.5

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
10 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

10 years ago

2.0.4

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago