{"_id":"htmlencode","_rev":"13-3368b74afee9ef355e999ea732fb4fda","name":"htmlencode","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.3":{"name":"htmlencode","version":"0.0.3","keywords":["html","encode","decode"],"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"license":"MIT","_id":"htmlencode@0.0.3","maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"dist":{"shasum":"cebd123aafc29a30120b1ccc6ff95eda5a11d470","tarball":"https://registry.npmjs.org/htmlencode/-/htmlencode-0.0.3.tgz","integrity":"sha512-pHgSsFUuQ8Da2S41DN61sz9lNjZQyqjmpCHwbxuCM8XgEghOlYrHDBZsgkTyk8Knyyk2q4N+/CkFDQn/hNvSqw==","signatures":[{"sig":"MEUCIQDdIMvgUOIklInKw7IAUHjBvkKk9z1QfTMX3sHzantozAIgHOupp3K88MdzxS33pecQygBmkH6nySzN2/QD+VqJvDs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","scripts":{"test":"env mocha"},"_npmUser":{"name":"danmactough","email":"danmactough@gmail.com"},"repository":"","_npmVersion":"1.2.2","description":"Wrapped version of http://www.strictly-software.com/htmlencode","directories":{"test":"test"},"dependencies":{},"devDependencies":{"mocha":"~1"}},"0.0.4":{"name":"htmlencode","version":"0.0.4","keywords":["html","encode","decode"],"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"license":"MIT","_id":"htmlencode@0.0.4","maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"homepage":"https://github.com/danmactough/node-htmlencode","bugs":{"url":"https://github.com/danmactough/node-htmlencode/issues"},"dist":{"shasum":"f7e2d6afbe18a87a78e63ba3308e753766740e3f","tarball":"https://registry.npmjs.org/htmlencode/-/htmlencode-0.0.4.tgz","integrity":"sha512-0uDvNVpzj/E2TfvLLyyXhKBRvF1y84aZsyRxRXFsQobnHaL4pcaXk+Y9cnFlvnxrBLeXDNq/VJBD+ngdBgQG1w==","signatures":[{"sig":"MEUCICSkj7knhXd70a/1zvwB7ZU7mR4sOOeIduAI1XcQ8qILAiEA14Fr72IaePJlHC5nlIZcAzDaUmDnkGgH385y7LtHuGg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"index.js","_from":".","_shasum":"f7e2d6afbe18a87a78e63ba3308e753766740e3f","scripts":{"test":"env mocha"},"_npmUser":{"name":"danmactough","email":"danmactough@gmail.com"},"repository":{"url":"git://github.com/danmactough/node-htmlencode.git","type":"git"},"_npmVersion":"1.4.9","description":"Wrapped version of http://www.strictly-software.com/htmlencode","directories":{"test":"test"},"dependencies":{},"devDependencies":{"mocha":"~1"}},"0.0.5":{"name":"htmlencode","version":"0.0.5","description":"Wrapped version of http://www.strictly-software.com/htmlencode","main":"index.js","scripts":{"test":"env mocha"},"homepage":"https://github.com/danmactough/node-htmlencode","repository":{"type":"git","url":"git://github.com/danmactough/node-htmlencode.git"},"keywords":["html","encode","decode"],"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"license":"MIT","devDependencies":{"mocha":"~1"},"directories":{"test":"test"},"dependencies":{},"_id":"htmlencode@0.0.5","gitHead":"836e76d6c313ed9191229077cf24cadbc67a8743","bugs":{"url":"https://github.com/danmactough/node-htmlencode/issues"},"_nodeVersion":"22.22.0","_npmVersion":"10.9.4","dist":{"integrity":"sha512-wdWZ6HysCVu5BurawxrETKdN4u7DbDjfbAXlpDRHohchq598Ire4ZCKVxvbH327mggKL5hwW0RykPKN0GxgpdA==","shasum":"c0e082b398027141d08eae13f6625a0963925afc","tarball":"https://registry.npmjs.org/htmlencode/-/htmlencode-0.0.5.tgz","fileCount":7,"unpackedSize":18434,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCWe/z1F7o1qVXeq1EBIBe9DwdUNjHrp2lVl2WOD/8TEQIhAIBDr4ZG7uK+JXOkipte3kHwSi6aQ1mRmlH89QrcQLzR"}]},"_npmUser":{"name":"danmactough","email":"danmactough@gmail.com"},"maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/htmlencode_0.0.5_1772589892012_0.5040110744582385"},"_hasShrinkwrap":false}},"time":{"created":"2013-01-21T22:57:46.003Z","modified":"2026-03-04T02:04:52.289Z","0.0.3":"2013-01-21T22:57:46.672Z","0.0.4":"2014-05-30T15:46:56.938Z","0.0.5":"2026-03-04T02:04:52.178Z"},"bugs":{"url":"https://github.com/danmactough/node-htmlencode/issues"},"author":{"name":"Dan MacTough","email":"danmactough@gmail.com"},"license":"MIT","homepage":"https://github.com/danmactough/node-htmlencode","keywords":["html","encode","decode"],"repository":{"type":"git","url":"git://github.com/danmactough/node-htmlencode.git"},"description":"Wrapped version of http://www.strictly-software.com/htmlencode","maintainers":[{"name":"danmactough","email":"danmactough@gmail.com"}],"readme":"# node-htmlencode\n\nA wrapped version of http://www.strictly-software.com/htmlencode library --\nonly two changes to the original:\n\n1. Renamed global `Encoder` object to `module.exports` so it can be used as a Node module.\n2. Fixed leaking global variable `arr` in `htmlDecode` method\n\n## Usage\n\nIn addition to the very minor changes described above, the library is wrapped in\na function to allow you to `require` just the individual method(s) you want.\n\n```js\nvar htmlencode = require('htmlencode');\nhtmlencode.htmlEncode('<h1>Welcome</h1>');\n// &lt;h1&gt;Welcome&lt;/h1&gt;\n```\n\nworks the same as\n\n```js\nvar htmlEncode = require('htmlencode').htmlEncode;\nhtmlEncode('<h1>Welcome</h1>');\n// &lt;h1&gt;Welcome&lt;/h1&gt;\n```\n\nIf you want to change to using numeric HTML entities, you'll still want to do\nsomething like this:\n\n```js\nvar htmlencode = require('htmlencode');\nhtmlencode.EncodeType = 'numerical'; // Don't blame me. I didn't name it.\nhtmlencode.htmlEncode('<h1>Welcome</h1>');\n// &#60;h1&#62;Welcome&#60;/h1&#62;\n```\n\nAlso provided is `module.exports.Encoder`, the wrapper class, so you can do\nsomething like this if you so choose:\n\n```js\nvar htmlencode = require('htmlencode');\nvar widget = new htmlencode.Encoder('numerical');\nwidget.htmlEncode('<h1>Welcome</h1>');\n// &#60;h1&#62;Welcome&#60;/h1&#62;\n```\n","readmeFilename":"README.md","users":{"rubiadias":true,"kurteknikk":true,"dpjayasekara":true,"shaomingquan":true}}