-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
35 lines (35 loc) · 2.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"name": "valid-identifier",
"version": "0.0.1",
"description": "Validates namespaces and java package names against identifier rules",
"main": "valid-identifier.js",
"repository": {
"type": "git",
"url": "http://github.com/purplecabbage/valid-identifier"
},
"keywords": [
"validate",
"identifier",
"java",
"c#"
],
"scripts": {
"test": "npm run jasmine",
"jasmine": "jasmine-node --captureExceptions --color tests/valid-identifier-spec.js"
},
"devDependencies": {
"jasmine-node": "1.14.5"
},
"author": {
"name": "Jesse MacFadyen"
},
"license": "ASF 2.0",
"readme": "<!--\r\n#\r\n# Licensed to the Apache Software Foundation (ASF) under one\r\n# or more contributor license agreements. See the NOTICE file\r\n# distributed with this work for additional information\r\n# regarding copyright ownership. The ASF licenses this file\r\n# to you under the Apache License, Version 2.0 (the\r\n# \"License\"); you may not use this file except in compliance\r\n# with the License. You may obtain a copy of the License at\r\n#\r\n# http://www.apache.org/licenses/LICENSE-2.0\r\n#\r\n# Unless required by applicable law or agreed to in writing,\r\n# software distributed under the License is distributed on an\r\n# \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\r\n# KIND, either express or implied. See the License for the\r\n# specific language governing permissions and limitations\r\n# under the License.\r\n#\r\n-->\r\n\r\n#Usage\r\n\r\n\tnpm install valid-identifier\r\n\r\n\tvar validateIdentifier = require('valid-identifier');\r\n\tvalidateIdentifier(\"$dollarSign\"); // returns true\r\n\tvalidateIdentifier(\"org.apache.cordova.myapp\"); // true\r\n\t\r\n\tvalidateIdentifier(\"private.name\"); // false, private is a reserved word\r\n\tvalidateIdentifier(\"org.8bit\"); // false, portion starts with a number\r\n\tvalidateIdentifier(\"extra.dot.\"); // false\r\n\r\n\r\n\r\n#Running the tests\r\n\r\n\tnpm test",
"readmeFilename": "readme.md",
"bugs": {
"url": "https://github.com/purplecabbage/valid-identifier/issues"
},
"homepage": "https://github.com/purplecabbage/valid-identifier",
"_id": "valid-identifier@0.0.1",
"_from": "valid-identifier@0.0.1"
}