{"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":"zertosh","email":"zertosh@gmail.com"},"maintainers":[{"name":"zertosh","email":"zertosh@gmail.com"}],"dist":{"shasum":"6f5b3f606204e0f29c11c210747de350c6c20b38","tarball":"http://registry-npm.ywwl.com/htmlescape/download/htmlescape-0.0.1.tgz","integrity":"sha512-5ctmDTxSpH9SbeG73eQFtuwwFGczNRZEnGDOydK7FzKu4z1vBL9tuIl/CPvNSnOzlNtO8yX0ZtdDZjlNFz4nXA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDXT9nMDT6zxTTguXRew76qwYjTnF7AD2znHR5p4XEsmgIgCPXTMC5yzpiITLaSVXlZnK3f0UbdK1QUiBj3kTpnWzs="}],"size":991,"noattachment":false,"key":"/htmlescape/-/htmlescape-0.0.1.tgz"},"directories":{},"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","publish_time":1411880157593,"_cnpm_publish_time":1411880157593,"dist-tags":{"latest":"1.1.1"}}