valid-identifier

Validates namespaces and java package names against identifier rules

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
valid-identifier
410.0.24 years ago8 years agoMinified + gzip package size for valid-identifier in KB

Readme

Build Status npm version
Usage
npm install valid-identifier

var validateIdentifier = require('valid-identifier');
validateIdentifier("$dollarSign"); // returns true
validateIdentifier("org.apache.cordova.myapp"); // true
validateIdentifier("private.name"); // false, private is a reserved word
validateIdentifier("org.8bit"); // false, portion starts with a number
validateIdentifier("extra.dot."); // false
Running the tests
npm test