christian 4571a14169 android fix | 3 years ago | |
---|---|---|
.. | ||
tests | 3 years ago | |
.travis.yml | 3 years ago | |
LICENSE | 3 years ago | |
package.json | 3 years ago | |
readme.md | 3 years ago | |
valid-identifier.js | 3 years ago |
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
npm test