{"maintainers":[{"name":"deployment","email":"zertosh@gmail.com"}],"keywords":["escape","encoding","html","json","template"],"dist-tags":{"latest":"1.1.1"},"author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"description":"Properly escape JSON for usage as an object literal inside of a `<script>` tag","readme":"# htmlescape\n\nProperly escape JSON for usage as an object literal inside of a `<script>` tag. Use `htmlescape` in place of `JSON.stringify`. For more info see [JSON: The JavaScript subset that isn't](http://timelessrepo.com/json-isnt-a-javascript-subset).\n\n## Transformations\n\n| from     | to        |\n| -------- |:---------:|\n| `&`      | `\\\\u0026` |\n| `>`      | `\\\\u003e` |\n| `<`      | `\\\\u003c` |\n| `\\u2028` | `\\\\u2028` |\n| `\\u2029` | `\\\\u2029` |\n\n\n## Usage\n\n```js\nvar htmlescape = require('htmlescape');\nhtmlescape({prop:'value'});\n//=> '{\"prop\":\"value\"}'\n```\n\nOr in your templates:\n\n```html\n<script>\nvar payload = <%= htmlescape(payload) %>;\n</script>\n```\n","repository":{"type":"git","url":"git://github.com/zertosh/htmlescape.git"},"users":{"nickeltobias":true,"tobiasnickel":true,"cheapsteak":true,"rubiadias":true,"icodeforcookies":true},"bugs":{"url":"https://github.com/zertosh/htmlescape/issues"},"license":"MIT","versions":{"0.0.1":{"name":"htmlescape","version":"0.0.1","description":"htmlescape","keywords":["escape","encoding","html","json","template"],"homepage":"https://github.com/zertosh/htmlescape","licence":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"htmlescape.js","repository":{"type":"git","url":"git://github.com/zertosh/htmlescape.git"},"scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"^3.0.0"},"engines":{"node":">=0.10"},"gitHead":"0527ca7156a524d256101bb310a9f970f63078ad","bugs":{"url":"https://github.com/zertosh/htmlescape/issues"},"_id":"htmlescape@0.0.1","_shasum":"6f5b3f606204e0f29c11c210747de350c6c20b38","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"deployment","email":"zertosh@gmail.com"},"maintainers":[{"name":"deployment","email":"zertosh@gmail.com"}],"dist":{"shasum":"6f5b3f606204e0f29c11c210747de350c6c20b38","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/htmlescape/-/htmlescape-0.0.1.tgz","integrity":"sha512-5ctmDTxSpH9SbeG73eQFtuwwFGczNRZEnGDOydK7FzKu4z1vBL9tuIl/CPvNSnOzlNtO8yX0ZtdDZjlNFz4nXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXT9nMDT6zxTTguXRew76qwYjTnF7AD2znHR5p4XEsmgIgCPXTMC5yzpiITLaSVXlZnK3f0UbdK1QUiBj3kTpnWzs="}]},"directories":{}},"1.0.0":{"name":"htmlescape","version":"1.0.0","description":"Properly escape JSON for usage as an object literal inside of a `<script>` tag","keywords":["escape","encoding","html","json","template"],"homepage":"https://github.com/zertosh/htmlescape","licence":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"htmlescape.js","repository":{"type":"git","url":"git://github.com/zertosh/htmlescape.git"},"scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"^3.0.0"},"engines":{"node":">=0.10"},"gitHead":"c60271799d85183151bed4ca8fbe99cf0cc2e546","bugs":{"url":"https://github.com/zertosh/htmlescape/issues"},"_id":"htmlescape@1.0.0","_shasum":"bdc7670dbb7e011353474232bc5a0bbb42bb661e","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"deployment","email":"zertosh@gmail.com"},"maintainers":[{"name":"deployment","email":"zertosh@gmail.com"}],"dist":{"shasum":"bdc7670dbb7e011353474232bc5a0bbb42bb661e","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/htmlescape/-/htmlescape-1.0.0.tgz","integrity":"sha512-o8kc+5gxA9ju/8OMx6C7FHUCCqwyMcckkGikVkR6ysjHeRFNspN+SkY5qaX6vfZtFVGiEIP9/7WcB9aemZRIJw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDuAmxUxButii1VIPVhiKikebUWTJC2uuC7k/U2hVkI5QIhAIweA22Q0F2Wwdj1tpUD2eb0jwTyBID1E/hsweDozpw6"}]},"directories":{}},"1.1.0":{"name":"htmlescape","version":"1.1.0","description":"Properly escape JSON for usage as an object literal inside of a `<script>` tag","keywords":["escape","encoding","html","json","template"],"homepage":"https://github.com/zertosh/htmlescape","licence":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"htmlescape.js","repository":{"type":"git","url":"git://github.com/zertosh/htmlescape.git"},"scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"^3.0.0"},"engines":{"node":">=0.10"},"gitHead":"06156f88adccb5a2a5b9c7dd14628a931f96541d","bugs":{"url":"https://github.com/zertosh/htmlescape/issues"},"_id":"htmlescape@1.1.0","_shasum":"ebf7a9524f7c86b5f6888589b40bdba712eafa67","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"deployment","email":"zertosh@gmail.com"},"maintainers":[{"name":"deployment","email":"zertosh@gmail.com"}],"dist":{"shasum":"ebf7a9524f7c86b5f6888589b40bdba712eafa67","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/htmlescape/-/htmlescape-1.1.0.tgz","integrity":"sha512-ZOXdaYwR5B/k0633emjfrDYqQcEFXsVLrlrag4Rwgs8MM8MK5u67LPQ3VbDYkJAahSZ65+cDnAXSSDkpac0M5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCOOSyngSabB6DS7XdnFxwvWiA8mhOU9nr3bpZyj5Hc2QIgHaZv4kHDMzGhyOFQx0yN6jrFaWtzHY40B12Ld/Zm54g="}]},"directories":{}},"1.1.1":{"name":"htmlescape","version":"1.1.1","description":"Properly escape JSON for usage as an object literal inside of a `<script>` tag","keywords":["escape","encoding","html","json","template"],"homepage":"https://github.com/zertosh/htmlescape","license":"MIT","author":{"name":"Andres Suarez","email":"zertosh@gmail.com"},"main":"htmlescape.js","repository":{"type":"git","url":"git://github.com/zertosh/htmlescape.git"},"scripts":{"test":"tape test/*.js"},"dependencies":{},"devDependencies":{"tape":"^3.0.0"},"engines":{"node":">=0.10"},"gitHead":"02dbcc367dd3069b73253ac08d87a40d37984239","bugs":{"url":"https://github.com/zertosh/htmlescape/issues"},"_id":"htmlescape@1.1.1","_shasum":"3a03edc2214bca3b66424a3e7959349509cb0351","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"deployment","email":"zertosh@gmail.com"},"dist":{"shasum":"3a03edc2214bca3b66424a3e7959349509cb0351","tarball":"http://repository.ncinga.com/nexus/content/groups/npm-all/htmlescape/-/htmlescape-1.1.1.tgz","integrity":"sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoalaBoWYDqJNKoKQq18IzBw34BEqZ4y8G1tR1gMTwGgIhAM4LVbL16K7wiW+1Oc0nH13B/4LZ7GfOHlggf16HHyBS"}]},"maintainers":[{"name":"deployment","email":"zertosh@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/htmlescape-1.1.1.tgz_1458699438386_0.6642345392610878"},"directories":{}}},"name":"htmlescape","time":{"modified":"2022-06-18T22:05:25.432Z","created":"2014-09-28T04:55:57.593Z","0.0.1":"2014-09-28T04:55:57.593Z","1.0.0":"2014-09-28T22:41:09.849Z","1.1.0":"2015-04-12T21:53:04.584Z","1.1.1":"2016-03-23T02:17:18.890Z"},"readmeFilename":"README.md","homepage":"https://github.com/zertosh/htmlescape"}