{"_id":"ent","_rev":"109000","name":"ent","description":"Encode and decode HTML entities","dist-tags":{"latest":"2.2.0"},"maintainers":[{"name":"tootallnate","email":""}],"time":{"modified":"2024-02-17T15:31:24.000Z","created":"2011-02-16T14:13:52.460Z","2.2.0":"2015-01-16T21:20:57.601Z","2.1.1":"2015-01-14T19:37:59.541Z","2.1.0":"2015-01-14T19:00:51.343Z","2.0.0":"2014-04-10T08:19:56.164Z","1.0.0":"2014-04-10T01:51:34.892Z","0.1.0":"2013-07-29T21:11:44.933Z","0.0.7":"2013-07-29T20:48:24.429Z","0.0.6":"2013-07-17T22:33:02.680Z","0.0.5":"2012-12-12T07:13:06.445Z","0.0.4":"2011-06-09T22:18:42.740Z","0.0.3":"2011-06-09T22:09:04.046Z","0.0.2":"2011-02-24T20:35:24.457Z","0.0.1":"2011-02-16T14:13:52.460Z"},"users":{},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"versions":{"2.2.0":{"name":"ent","description":"Encode and decode HTML entities","version":"2.2.0","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tape test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/3.5","ff/latest","chrome/10","chrome/latest","safari/latest","opera/latest"]},"devDependencies":{"tape":"~2.3.2"},"gitHead":"bf59099130ea3cff66fecd868acd093810245d2a","bugs":{"url":"https://github.com/substack/node-ent/issues"},"homepage":"https://github.com/substack/node-ent","_id":"ent@2.2.0","_shasum":"e964219325a21d05f44466a2f686ed6ce5f5dd1d","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"e964219325a21d05f44466a2f686ed6ce5f5dd1d","size":24298,"noattachment":false,"key":"/ent/-/ent-2.2.0.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-2.2.0.tgz"},"directories":{},"publish_time":1421443257601,"_cnpm_publish_time":1421443257601,"_hasShrinkwrap":false},"2.1.1":{"name":"ent","description":"Encode and decode HTML entities","version":"2.1.1","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tape test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/3.5","ff/latest","chrome/10","chrome/latest","safari/latest","opera/latest"]},"devDependencies":{"tape":"~2.3.2"},"gitHead":"6cc9cae95a0d7d29e338a1916b8bc072e5d860f5","bugs":{"url":"https://github.com/substack/node-ent/issues"},"homepage":"https://github.com/substack/node-ent","_id":"ent@2.1.1","_shasum":"4094ef49874e18804f67aa8bf147e54602db7756","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"tootallnate","email":"nathan@tootallnate.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"4094ef49874e18804f67aa8bf147e54602db7756","size":24113,"noattachment":false,"key":"/ent/-/ent-2.1.1.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-2.1.1.tgz"},"directories":{},"publish_time":1421264279541,"_cnpm_publish_time":1421264279541,"_hasShrinkwrap":false},"2.1.0":{"name":"ent","description":"Encode and decode HTML entities","version":"2.1.0","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tape test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/3.5","ff/latest","chrome/10","chrome/latest","safari/latest","opera/latest"]},"devDependencies":{"tape":"~2.3.2"},"gitHead":"ff1d4bff1bbdabad652fe2a302ff0f11f7f919fa","bugs":{"url":"https://github.com/substack/node-ent/issues"},"homepage":"https://github.com/substack/node-ent","_id":"ent@2.1.0","_shasum":"96d24ce569209ad25cecf08b5fd2f0dfe598ab4c","_from":".","_npmVersion":"2.1.16","_nodeVersion":"0.10.35","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"dist":{"shasum":"96d24ce569209ad25cecf08b5fd2f0dfe598ab4c","size":23995,"noattachment":false,"key":"/ent/-/ent-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-2.1.0.tgz"},"directories":{},"publish_time":1421262051343,"_cnpm_publish_time":1421262051343,"_hasShrinkwrap":false},"2.0.0":{"name":"ent","description":"Encode and decode HTML entities","version":"2.0.0","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tape test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/3.5","ff/latest","chrome/10","chrome/latest","safari/latest","opera/latest"]},"devDependencies":{"tape":"~2.3.2"},"bugs":{"url":"https://github.com/substack/node-ent/issues"},"homepage":"https://github.com/substack/node-ent","_id":"ent@2.0.0","dist":{"shasum":"e6619346f91bd0f73131acb3638381e66bba40ff","size":23799,"noattachment":false,"key":"/ent/-/ent-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-2.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1397117996164,"_hasShrinkwrap":false,"_cnpm_publish_time":1397117996164},"1.0.0":{"name":"ent","description":"Encode and decode HTML entities","version":"1.0.0","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tape test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":["ie/6..latest","ff/3.5","ff/latest","chrome/10","chrome/latest","safari/latest","opera/latest"]},"devDependencies":{"tape":"~2.3.2"},"bugs":{"url":"https://github.com/substack/node-ent/issues"},"homepage":"https://github.com/substack/node-ent","_id":"ent@1.0.0","dist":{"shasum":"3c2e96333db4482253f333cd935dd77a84f6cc01","size":23689,"noattachment":false,"key":"/ent/-/ent-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-1.0.0.tgz"},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1397094694892,"_hasShrinkwrap":false,"_cnpm_publish_time":1397094694892},"0.1.0":{"name":"ent","description":"Encode and decode HTML entities","version":"0.1.0","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tap test/*.js","prepublish":"node build/index.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9],"ff":[3.5,10,15],"chrome":[10,22],"safari":[5.1],"opera":[12]}},"devDependencies":{"tap":"~0.4.3","tape":"~1.0.4"},"bugs":{"url":"https://github.com/substack/node-ent/issues"},"_id":"ent@0.1.0","dist":{"shasum":"deb9cd7f3da25b1a94c248dbbdc91d0f0c094035","size":23368,"noattachment":false,"key":"/ent/-/ent-0.1.0.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.0","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1375132304933,"_hasShrinkwrap":false,"_cnpm_publish_time":1375132304933},"0.0.7":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.7","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tap test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9],"ff":[3.5,10,15],"chrome":[10,22],"safari":[5.1],"opera":[12]}},"devDependencies":{"tap":"~0.4.3","tape":"~1.0.4"},"bugs":{"url":"https://github.com/substack/node-ent/issues"},"_id":"ent@0.0.7","dist":{"shasum":"835d4e7f9e7a8d4921c692e9010ec976da5e9949","size":4292,"noattachment":false,"key":"/ent/-/ent-0.0.7.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.7.tgz"},"_from":".","_npmVersion":"1.3.0","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1375130904429,"_hasShrinkwrap":false,"_cnpm_publish_time":1375130904429},"0.0.6":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.6","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"MIT","scripts":{"test":"tap test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9],"ff":[3.5,10,15],"chrome":[10,22],"safari":[5.1],"opera":[12]}},"devDependencies":{"tap":"~0.3.3","tape":"~0.1.0"},"bugs":{"url":"https://github.com/substack/node-ent/issues"},"_id":"ent@0.0.6","dist":{"shasum":"02cfc5a6e1945ec837faa03cfd0d71059f8438e9","size":4239,"noattachment":false,"key":"/ent/-/ent-0.0.6.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.6.tgz"},"_from":".","_npmVersion":"1.3.0","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1374100382680,"_hasShrinkwrap":false,"_cnpm_publish_time":1374100382680},"0.0.5":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.5","repository":{"type":"git","url":"https://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"perl","scripts":{"test":"tap test/*.js"},"testling":{"files":"test/*.js","browsers":{"ie":[6,7,8,9],"ff":[3.5,10,15],"chrome":[10,22],"safari":[5.1],"opera":[12]}},"devDependencies":{"tap":"~0.3.3","tape":"~0.1.0"},"_id":"ent@0.0.5","dist":{"shasum":"98b4498d8a89d7b8d78af7aaa0714675783c7b4e","size":3522,"noattachment":false,"key":"/ent/-/ent-0.0.5.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.5.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"substack","email":"mail@substack.net"},"maintainers":[{"name":"tootallnate","email":""}],"directories":{},"publish_time":1355296386445,"_hasShrinkwrap":false,"_cnpm_publish_time":1355296386445},"0.0.4":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.4","repository":{"type":"git","url":"git://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"perl","scripts":{"test":"expresso"},"engines":{"node":">=0.2.0"},"dependencies":{},"devDependencies":{},"_id":"ent@0.0.4","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"532820d894818a4b3abd452ba38a625c2ff8b6a7","size":3277,"noattachment":false,"key":"/ent/-/ent-0.0.4.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.4.tgz"},"directories":{},"publish_time":1307657922740,"maintainers":[{"name":"tootallnate","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1307657922740},"0.0.3":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.3","repository":{"type":"git","url":"git://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"license":"perl","scripts":{"test":"expresso"},"engines":{"node":">=0.2.0"},"dependencies":{},"devDependencies":{},"_id":"ent@0.0.3","_engineSupported":true,"_npmVersion":"1.0.6","_nodeVersion":"v0.5.0-pre","_defaultsLoaded":true,"dist":{"shasum":"db9d5147a94f177486191111397b58f8efdd9dfc","size":3248,"noattachment":false,"key":"/ent/-/ent-0.0.3.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.3.tgz"},"directories":{},"publish_time":1307657344046,"maintainers":[{"name":"tootallnate","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1307657344046},"0.0.2":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.2","repository":{"type":"git","url":"git://github.com/substack/node-ent.git"},"author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index.js","keywords":["entities","entitify","entity","html","encode","decode"],"scripts":{"test":"expresso"},"engines":{"node":">=0.2.0"},"_id":"ent@0.0.2","_engineSupported":true,"_npmVersion":"0.3.3","_nodeVersion":"v0.5.0-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"df49c9620a8cc5b962d2c8a3050dcfdd25971b15","size":3031,"noattachment":false,"key":"/ent/-/ent-0.0.2.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.2.tgz"},"publish_time":1298579724457,"maintainers":[{"name":"tootallnate","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1298579724457},"0.0.1":{"name":"ent","description":"Encode and decode HTML entities","version":"0.0.1","repository":"https://github.com/substack/node-ent.git","author":{"name":"James Halliday","email":"mail@substack.net","url":"http://substack.net"},"main":"./index","keywords":["entities","entitify","entity","html","encode","decode"],"scripts":{"test":"expresso"},"engines":{"node":">=0.2.0"},"_id":"ent@0.0.1","_engineSupported":true,"_npmVersion":"0.2.18","_nodeVersion":"v0.3.8-pre","directories":{},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"c475d401928b4ba617506405780b1c9468dbd3e5","size":3062,"noattachment":false,"key":"/ent/-/ent-0.0.1.tgz","tarball":"http://name.csiicloud.com:7001/ent/download/ent-0.0.1.tgz"},"publish_time":1297865632460,"maintainers":[{"name":"tootallnate","email":""}],"_hasShrinkwrap":false,"_cnpm_publish_time":1297865632460}},"readme":"# ent\n\nEncode and decode HTML entities\n\n[![browser support](http://ci.testling.com/substack/node-ent.png)](http://ci.testling.com/substack/node-ent)\n\n[![build status](https://secure.travis-ci.org/substack/node-ent.png)](http://travis-ci.org/substack/node-ent)\n\n# example\n\n``` js\nvar ent = require('ent');\nconsole.log(ent.encode('<span>©moo</span>'))\nconsole.log(ent.decode('&pi; &amp; &rho;'));\n```\n\n```\n&#60;span&#62;&#169;moo&#60;/span&#62;\nπ & ρ\n```\n\n![ent](http://substack.net/images/ent.png)\n\n# methods\n\n``` js\nvar ent = require('ent');\nvar encode = require('ent/encode');\nvar decode = require('ent/decode');\n```\n\n## encode(str, opts={})\n\nEscape unsafe characters in `str` with html entities.\n\nBy default, entities are encoded with numeric decimal codes.\n\nIf `opts.numeric` is false or `opts.named` is true, encoding will used named\ncodes like `&pi;`.\n\nIf `opts.special` is set to an Object, the key names will be forced\nto be encoded (defaults to forcing: `<>'\"&`). For example:\n\n``` js\nconsole.log(encode('hello', { special: { l: true } }));\n```\n\n```\nhe&#108;&#108;o\n```\n\n## decode(str)\n\nConvert html entities in `str` back to raw text.\n\n# credits\n\nHTML entity tables shamelessly lifted from perl's\n[HTML::Entities](http://cpansearch.perl.org/src/GAAS/HTML-Parser-3.68/lib/HTML/Entities.pm)\n\n# install\n\nWith [npm](https://npmjs.org) do:\n\n```\nnpm install ent\n```\n\n# license\n\nMIT\n","_attachments":{},"homepage":"https://github.com/substack/node-ent","bugs":{"url":"https://github.com/substack/node-ent/issues"},"license":"MIT"}