nyc-bookstores/node_modules/cheerio/node_modules/entities/package.json
2013-05-27 13:45:59 -07:00

30 lines
1.6 KiB
JSON

{
"name": "entities",
"version": "0.2.1",
"description": "Encode & decode XML/HTML entities with ease",
"author": {
"name": "Felix Boehm",
"email": "me@feedic.com"
},
"keywords": [
"html",
"xml",
"entity",
"encoding"
],
"main": "./index.js",
"repository": {
"type": "git",
"url": "git://github.com/fb55/node-entities.git"
},
"license": "BSD-like",
"readme": "#entities\n\nEn- & decoder for XML/HTML entities.\n\n####Features:\n* Focussed on ___speed___\n* Supports three levels of entities: __XML__, __HTML4__ & __HTML5__\n * Supports _char code_ entities (eg. `&#x55;`)\n * Special optimizations for XML: A more restrictive syntax allows faster parsing\n\n##How to…\n\n###…install `entities`\n\n npm install entities\n\n###…use `entities`\n\n```javascript\n//encoding\nrequire(\"entities\").encode(<str> data[, <int> level]);\n//decoding\nrequire(\"entities\").decode(<str> data[, <int> level]);\n```\n\nThe `level` attribute indicates what level of entities should be decoded (0 = XML, 1 = HTML4 and 2 = HTML5). The default is 0 (read: XML).\n\nThere are also methods to access the level directly. Just append the name of the level to the action and you're ready to go (e.g. `encodeHTML4(data)`, `decodeXML(data)`).\n\n##TODO\n* There should be a way to remove tables that aren't used. The HTML5 table is pretty heavy, if it's not needed, it shouldn't be kept in memory.",
"readmeFilename": "readme.md",
"_id": "entities@0.2.1",
"dist": {
"shasum": "7aae886864887067f79f252a04c45309f4ac7980"
},
"_from": "entities@0.x",
"_resolved": "https://registry.npmjs.org/entities/-/entities-0.2.1.tgz"
}