valid-identifier

0.0.1 • Public • Published

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

install

npm i valid-identifier

Downloadsweekly downloads

40,051

version

0.0.1

license

ASF 2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability