npm

Need private packages and team management tools?Check out npm Orgs. »

valid-identifier

0.0.2 • Public • Published

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

install

npm i valid-identifier

Downloadsweekly downloads

67,478

version

0.0.2

license

Apache-2.0

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability