GT2/GT2-iOS/node_modules/xml-name-validator/package.json

103 lines
4.1 KiB
JSON

{
"_args": [
[
{
"raw": "xml-name-validator@^3.0.0",
"scope": null,
"escapedName": "xml-name-validator",
"name": "xml-name-validator",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jsdom"
]
],
"_from": "xml-name-validator@>=3.0.0 <4.0.0",
"_id": "xml-name-validator@3.0.0",
"_inCache": true,
"_location": "/xml-name-validator",
"_nodeVersion": "8.6.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/xml-name-validator-3.0.0.tgz_1508717316935_0.215595209505409"
},
"_npmUser": {
"name": "domenic",
"email": "d@domenic.me"
},
"_npmVersion": "5.4.2",
"_phantomChildren": {},
"_requested": {
"raw": "xml-name-validator@^3.0.0",
"scope": null,
"escapedName": "xml-name-validator",
"name": "xml-name-validator",
"rawSpec": "^3.0.0",
"spec": ">=3.0.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/jsdom"
],
"_resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",
"_shasum": "6ae73e06de4d8c6e47f9fb181f78d648ad457c6a",
"_shrinkwrap": null,
"_spec": "xml-name-validator@^3.0.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jsdom",
"author": {
"name": "Domenic Denicola",
"email": "d@domenic.me",
"url": "https://domenic.me/"
},
"bugs": {
"url": "https://github.com/jsdom/xml-name-validator/issues"
},
"dependencies": {},
"description": "Validates whether a string matches the production for an XML name or qualified name",
"devDependencies": {
"eslint": "^2.9.0",
"mocha": "^2.4.5",
"waka": "0.1.2"
},
"directories": {},
"dist": {
"integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==",
"shasum": "6ae73e06de4d8c6e47f9fb181f78d648ad457c6a",
"tarball": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz"
},
"files": [
"lib/"
],
"gitHead": "f2bbf6ffee851b95381cd98053d777ab47419697",
"homepage": "https://github.com/jsdom/xml-name-validator#readme",
"keywords": [
"xml",
"name",
"qname"
],
"license": "Apache-2.0",
"main": "lib/xml-name-validator.js",
"maintainers": [
{
"name": "domenic",
"email": "domenic@domenicdenicola.com"
}
],
"name": "xml-name-validator",
"optionalDependencies": {},
"readme": "# Validate XML Names and Qualified Names\n\nThis package simply tells you whether or not a string matches the [`Name`](http://www.w3.org/TR/xml/#NT-Name) or [`QName`](http://www.w3.org/TR/xml-names/#NT-QName) productions in the XML Namespaces specification. We use it for implementing the [validate](https://dom.spec.whatwg.org/#validate) algorithm in jsdom, but you can use it for whatever you want.\n\n## Usage\n\nThis package's main module's default export takes a string and will return an object of the form `{ success, error }`, where `success` is a boolean and if it is `false`, then `error` is a string containing some hint as to where the match went wrong.\n\n```js\n\"use strict\":\nvar xnv = require(\"xml-name-validator\");\nvar assert = require(\"assert\");\n\n// Will return { success: true, error: undefined }\nxnv.name(\"x\");\nxnv.name(\":\");\nxnv.name(\"a:0\");\nxnv.name(\"a:b:c\");\n\n// Will return { success: false, error: <an explanatory string> }\nxnv.name(\"\\\\\");\nxnv.name(\"'\");\nxnv.name(\"0\");\nxnv.name(\"a!\");\n\n// Will return { success: true, error: undefined }\nxnv.qname(\"x\");\nxnv.qname(\"a0\");\nxnv.qname(\"a:b\");\n\n// Will return { success: false, error: <an explanatory string> }\nxnv.qname(\":a\");\nxnv.qname(\":b\");\nxnv.qname(\"a:b:c\");\nxnv.qname(\"a:0\");\n```\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/jsdom/xml-name-validator.git"
},
"scripts": {
"lint": "eslint .",
"prepublish": "node scripts/generate-grammar.js < lib/grammar.pegjs > lib/generated-parser.js",
"pretest": "npm run prepublish",
"test": "mocha"
},
"version": "3.0.0"
}