cordova-android/node_modules/sax/package.json

124 lines
11 KiB
JSON
Raw Normal View History

{
"_args": [
[
2016-07-23 03:24:27 +08:00
{
"raw": "sax@0.3.5",
2016-07-23 03:24:27 +08:00
"scope": null,
"escapedName": "sax",
"name": "sax",
"rawSpec": "0.3.5",
"spec": "0.3.5",
2016-07-23 03:24:27 +08:00
"type": "version"
},
"/Users/steveng/repo/cordova/cordova-android/node_modules/elementtree"
]
],
"_defaultsLoaded": true,
"_engineSupported": true,
"_from": "sax@0.3.5",
"_id": "sax@0.3.5",
"_inCache": true,
"_location": "/sax",
"_nodeVersion": "v0.6.7-pre",
"_npmUser": {
2016-07-23 03:24:27 +08:00
"name": "isaacs",
"email": "i@izs.me"
},
"_npmVersion": "1.1.0-beta-7",
"_phantomChildren": {},
"_requested": {
"raw": "sax@0.3.5",
"scope": null,
2016-07-23 03:24:27 +08:00
"escapedName": "sax",
"name": "sax",
"rawSpec": "0.3.5",
"spec": "0.3.5",
"type": "version"
},
"_requiredBy": [
"/elementtree"
],
2017-09-06 02:04:12 +08:00
"_resolved": "https://registry.npmjs.org/sax/-/sax-0.3.5.tgz",
"_shasum": "88fcfc1f73c0c8bbd5b7c776b6d3f3501eed073d",
"_shrinkwrap": null,
"_spec": "sax@0.3.5",
2016-07-23 03:24:27 +08:00
"_where": "/Users/steveng/repo/cordova/cordova-android/node_modules/elementtree",
"author": {
"name": "Isaac Z. Schlueter",
2016-07-23 03:24:27 +08:00
"email": "i@izs.me",
"url": "http://blog.izs.me/"
},
"bugs": {
"url": "https://github.com/isaacs/sax-js/issues"
},
"contributors": [
{
2016-07-23 03:24:27 +08:00
"name": "Isaac Z. Schlueter",
"email": "i@izs.me"
},
{
2016-07-23 03:24:27 +08:00
"name": "Stein Martin Hustad",
"email": "stein@hustad.com"
},
{
2016-07-23 03:24:27 +08:00
"name": "Mikeal Rogers",
"email": "mikeal.rogers@gmail.com"
},
{
2016-07-23 03:24:27 +08:00
"name": "Laurie Harper",
"email": "laurie@holoweb.net"
},
{
2016-07-23 03:24:27 +08:00
"name": "Jann Horn",
"email": "jann@Jann-PC.fritz.box"
},
{
2016-07-23 03:24:27 +08:00
"name": "Elijah Insua",
"email": "tmpvar@gmail.com"
},
{
2016-07-23 03:24:27 +08:00
"name": "Henry Rawas",
"email": "henryr@schakra.com"
},
{
2016-07-23 03:24:27 +08:00
"name": "Justin Makeig",
"email": "jmpublic@makeig.com"
}
],
"dependencies": {},
"description": "An evented streaming XML parser in JavaScript",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "88fcfc1f73c0c8bbd5b7c776b6d3f3501eed073d",
"tarball": "https://registry.npmjs.org/sax/-/sax-0.3.5.tgz"
},
"engines": {
"node": "*"
},
"homepage": "https://github.com/isaacs/sax-js#readme",
"license": {
"type": "MIT",
"url": "https://raw.github.com/isaacs/sax-js/master/LICENSE"
},
"main": "lib/sax.js",
"maintainers": [
{
2016-07-23 03:24:27 +08:00
"name": "isaacs",
"email": "i@izs.me"
}
],
"name": "sax",
"optionalDependencies": {},
2017-09-06 02:04:12 +08:00
"readme": "# sax js\n\nA sax-style parser for XML and HTML.\n\nDesigned with [node](http://nodejs.org/) in mind, but should work fine in\nthe browser or other CommonJS implementations.\n\n## What This Is\n\n* A very simple tool to parse through an XML string.\n* A stepping stone to a streaming HTML parser.\n* A handy way to deal with RSS and other mostly-ok-but-kinda-broken XML \n docs.\n\n## What This Is (probably) Not\n\n* An HTML Parser - That's a fine goal, but this isn't it. It's just\n XML.\n* A DOM Builder - You can use it to build an object model out of XML,\n but it doesn't do that out of the box.\n* XSLT - No DOM = no querying.\n* 100% Compliant with (some other SAX implementation) - Most SAX\n implementations are in Java and do a lot more than this does.\n* An XML Validator - It does a little validation when in strict mode, but\n not much.\n* A Schema-Aware XSD Thing - Schemas are an exercise in fetishistic \n masochism.\n* A DTD-aware Thing - Fetching DTDs is a much bigger job.\n\n## Regarding `<!DOCTYPE`s and `<!ENTITY`s\n\nThe parser will handle the basic XML entities in text nodes and attribute\nvalues: `&amp; &lt; &gt; &apos; &quot;`. It's possible to define additional\nentities in XML by putting them in the DTD. This parser doesn't do anything\nwith that. If you want to listen to the `ondoctype` event, and then fetch\nthe doctypes, and read the entities and add them to `parser.ENTITIES`, then\nbe my guest.\n\nUnknown entities will fail in strict mode, and in loose mode, will pass\nthrough unmolested.\n\n## Usage\n\n var sax = require(\"./lib/sax\"),\n strict = true, // set to false for html-mode\n parser = sax.parser(strict);\n\n parser.onerror = function (e) {\n // an error happened.\n };\n parser.ontext = function (t) {\n // got some text. t is the string of text.\n };\n parser.onopentag = function (node) {\n // opened a tag. node has \"name\" and \"attributes\"\n };\n parser.onattribute = function (attr) {\n // an attribute. attr has \"name\" and \"value\"\n };\n parser.onend = function () {\n // parser stream is done, and ready to have more stuff written to it.\n };\n\n parser.write('<xml>Hello, <who name=\"world\">world</who>!</xml>').close();\n\n // stream usage\n // takes the same options as the parser\n var saxStream = require(\"sax\").createStream(strict, options)\n saxStream.on(\"error\", function (e) {\n // unhandled errors will throw, since this is a proper node\n // event emitter.\n console.error(\"error!\", e)\n // clear the error\n this._parser.error = null\n this._parser.resume()\n })\n saxStream.on(\"opentag\", function (node) {\n // same object as above\n })\n // pipe is supported, and it's readable/writable\n // same chunks coming in also go out.\n fs.createReadStream(\"file.xml\")\n .pipe(saxStream)\n .pipe(fs.createReadStream(\"file-copy.xml\"))\n\n\n\n## Arguments\n\nPass the following arguments to the parser function. All are optional.\n\n`strict` - Boolean. Whether or not to be a jerk. Default: `false`.\n\n`opt` - Object bag of settings regarding string formatting. All default to `false`.\n\nSettings supported:\n\n* `trim` - Boolean. Whether or not to trim text and comment nodes.\n* `normalize` - Boolean. If true, then turn any whitespace into a single\n space.\n* `lowercasetags` - Boolean. If true, then lowercase tags in loose mode, \n rather than uppercasing them.\n* `xmlns` - Boolean. If true, then namespaces are supported.\n\n## Methods\n\n`write` - Write bytes onto the stream. You don't have to do this all at\nonce. You can keep writing as much as you want.\n\n`close` - Close the stream. Once closed, no more data may be written until\nit is done processing the buffer, which is signaled by the `end` event.\n\n`resume` - To gracefully handle errors, assign a listener to the `error`\nevent. Then, when the error is taken care of, you can call `resume` to\ncontinue parsing. Otherwise, the parser will not continue while i
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/isaacs/sax-js.git"
},
"scripts": {
"test": "node test/index.js"
},
"version": "0.3.5"
}