christian 4571a14169 android fix | 4 gadus atpakaļ | |
---|---|---|
.. | ||
tests | 4 gadus atpakaļ | |
.travis.yml | 4 gadus atpakaļ | |
LICENSE | 4 gadus atpakaļ | |
package.json | 4 gadus atpakaļ | |
readme.md | 4 gadus atpakaļ | |
valid-identifier.js | 4 gadus atpakaļ |
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