{"_id":"html-entity-codec","_rev":"2-a31d4faa8d49df2a847042d93417c827","name":"html-entity-codec","dist-tags":{"latest":"1.1.0"},"versions":{"0.0.1":{"name":"html-entity-codec","version":"0.0.1","keywords":["decode","encode","entities","escape","html"],"author":{"url":"https://codsen.com","name":"Roy Revelt","email":"roy@codsen.com"},"license":"MIT","_id":"html-entity-codec@0.0.1","maintainers":[{"name":"royston","email":"roy@codsen.com"}],"homepage":"https://codsen.com/os/html-entity-codec","bugs":{"url":"https://github.com/codsen/codsen/issues"},"dist":{"shasum":"daa1b53b5fbbcd2e282bd13e0812500a70822c2b","tarball":"https://registry.npmjs.org/html-entity-codec/-/html-entity-codec-0.0.1.tgz","fileCount":2,"integrity":"sha512-thalxRIhZSee8qbN9qHmaxK94MO+JgNeed3Ss9gcDQ8VZOPknP6bERlQy1BhePRHZBQsKwTmKdM4OTbYdNXitw==","signatures":[{"sig":"MEUCIQCbh4XNfox7IpBZzIZ/WKSgUIXVa6y0MDtpirgEHdYTQgIgO/nr3o6hhE91cm2YkTEvUEqU+k9QhtZ7NXU6uBlCAIc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":648},"main":"index.js","type":"module","gitHead":"ccce18121f50344fb29e4b9cc3a9bd3ef78b0be7","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"_npmUser":{"name":"royston","email":"roy@codsen.com"},"repository":{"url":"git+https://github.com/codsen/codsen.git","type":"git","directory":"packages/html-entity-codec"},"_npmVersion":"11.19.0","description":"Decode, encode, and escape HTML character references","directories":{},"_nodeVersion":"26.8.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/html-entity-codec_0.0.1_1788640212203_0.9789399168299788","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"html-entity-codec","version":"1.1.0","description":"Decode, encode, and escape HTML character references","keywords":["decode","encode","entities","escape","html"],"homepage":"https://codsen.com/os/html-entity-codec","repository":{"type":"git","url":"git+https://github.com/codsen/codsen.git","directory":"packages/html-entity-codec"},"license":"MIT","author":{"name":"Roy Revelt","email":"roy@codsen.com","url":"https://codsen.com"},"type":"module","exports":{"types":"./types/index.d.ts","script":"./dist/html-entity-codec.umd.js","default":"./dist/html-entity-codec.esm.js"},"types":"types/index.d.ts","scripts":{"build":"node ../../ops/scripts/esbuild.js && npm run dts","coverage":"c8 uvu test","dev":"node ../../ops/scripts/esbuild.js --dev && npm run dts","devtest":"c8 npm run unit && npm run examples && npm run lint","dts":"rollup -c && biome format --write --config-path=../../biome.json --vcs-enabled=false --use-editorconfig=false types/index.d.ts","examples":"node '../../ops/scripts/run-examples.js'","lect":"node '../../ops/lect/lect.js'","lect:check":"node '../../ops/lect/lect.js' --check","lint":"biome lint --error-on-warnings . && npm run typecheck","lint:fix":"biome lint --write --error-on-warnings . && npm run typecheck","perf":"node perf/check.js","prep":"echo 'ready'","prettier":"biome format","prettier:format":"biome format --write .","pretest":"npm run lect:check && npm run build","test":"npm run devtest","typecheck":"tsc --noEmit --pretty false --project tsconfig.json","unit":"uvu test"},"c8":{"all":true,"check-coverage":true,"exclude":["**/test/**/*.*"],"include":["dist/*.esm.js"],"lines":100},"lect":{"licence":{"extras":["HTML [named character references](https://html.spec.whatwg.org/entities.json) - Copyright © WHATWG (Apple, Google, Mozilla, Microsoft) - see its [BSD-3-Clause disclaimer](https://opensource.org/licenses/BSD-3-Clause)"]},"readme":{"features":{"summary":"HTML character-reference transformations from pinned WHATWG data.","items":["Decode in one pass with text or attribute context and explicit semicolon and parse-error policies.","Encode with stable named aliases or uppercase hexadecimal references; the dedicated numeric encoder lets bundlers omit named data.","Escape quoted attributes and ordinary HTML text, with optional progress and completion callbacks.","Keep source offsets through the reference scanner."]}}},"engines":{"node":">=18.20.8"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_id":"html-entity-codec@1.1.0","bugs":{"url":"https://github.com/codsen/codsen/issues"},"_integrity":"sha512-4Bw5CpLm2LGbMXNmVfSSMVmH20VuBDsP6MnwRIjVnOxwC7wz4X/RVCPSeIB5Om0n1yYQPStfXUDAsuwF3BRFFA==","_resolved":"/home/runner/work/codsen/codsen/npm-release-artifacts/html-entity-codec-1.1.0.tgz","_from":"file:/home/runner/work/codsen/codsen/npm-release-artifacts/html-entity-codec-1.1.0.tgz","_nodeVersion":"24.19.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-4Bw5CpLm2LGbMXNmVfSSMVmH20VuBDsP6MnwRIjVnOxwC7wz4X/RVCPSeIB5Om0n1yYQPStfXUDAsuwF3BRFFA==","shasum":"110f58282baa5e3745c3590aa861a64e66eb713f","tarball":"https://registry.npmjs.org/html-entity-codec/-/html-entity-codec-1.1.0.tgz","fileCount":7,"unpackedSize":120605,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/html-entity-codec@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD6LYyzuZ0f/iQVDogZjBn2POrUmPfpGPdbrl/+T3vjggIgAf2Wa7WiKEpI5/Ya0qp06pExKzVM7DYdGEY29eZyru8="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:470ff819-a967-4959-816c-9654cfb3eeee"}},"directories":{},"maintainers":[{"name":"royston","email":"roy@codsen.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/html-entity-codec_1.1.0_1788678200147_0.7484181029259416"},"_hasShrinkwrap":false}},"time":{"created":"2026-09-05T20:30:12.158Z","modified":"2026-09-06T07:03:20.598Z","0.0.1":"2026-09-05T20:30:12.343Z","1.1.0":"2026-09-06T07:03:20.308Z"},"bugs":{"url":"https://github.com/codsen/codsen/issues"},"author":{"name":"Roy Revelt","email":"roy@codsen.com","url":"https://codsen.com"},"license":"MIT","homepage":"https://codsen.com/os/html-entity-codec","keywords":["decode","encode","entities","escape","html"],"repository":{"type":"git","url":"git+https://github.com/codsen/codsen.git","directory":"packages/html-entity-codec"},"description":"Decode, encode, and escape HTML character references","maintainers":[{"name":"royston","email":"roy@codsen.com"}],"readme":"<h1 align=\"center\">html-entity-codec</h1>\n\n<p align=\"center\">Decode, encode, and escape HTML character references</p>\n\n<p align=\"center\">\n  <a href=\"https://codsen.com/os/html-entity-codec\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-codsen-blue?style=flat-square\" alt=\"page on codsen.com\">\n  </a>\n  <a href=\"https://www.npmjs.com/package/html-entity-codec\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-npm-blue?style=flat-square\" alt=\"page on npm\">\n  </a>\n  <a href=\"https://github.com/codsen/codsen/tree/main/packages/html-entity-codec\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/-github-blue?style=flat-square\" alt=\"page on github\">\n  </a>\n  <a href=\"https://npmcharts.com/compare/html-entity-codec?interval=30\" rel=\"nofollow noreferrer noopener\" target=\"_blank\">\n    <img src=\"https://img.shields.io/npm/dm/html-entity-codec.svg?style=flat-square\" alt=\"Downloads per month\">\n  </a>\n  <a href=\"https://codsen.com/os/html-entity-codec/changelog\" rel=\"nofollow noreferrer noopener\">\n    <img src=\"https://img.shields.io/badge/changelog-here-brightgreen?style=flat-square\" alt=\"changelog\">\n  </a>\n  <img src=\"https://img.shields.io/badge/licence-MIT-brightgreen.svg?style=flat-square\" alt=\"MIT Licence\">\n</p>\n\n**No dependencies whatsoever.** This package declares no dependencies or devDependencies.\n\n## Features\n\nHTML character-reference transformations from pinned WHATWG data.\n\n- Decode in one pass with text or attribute context and explicit semicolon and parse-error policies.\n- Encode with stable named aliases or uppercase hexadecimal references; the dedicated numeric encoder lets bundlers omit named data.\n- Escape quoted attributes and ordinary HTML text, with optional progress and completion callbacks.\n- Keep source offsets through the reference scanner.\n\n## Install\n\nThis package is [pure ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\n\n```bash\nnpm i html-entity-codec\n```\n\n## Quick Take\n\n```js\nimport assert from \"node:assert/strict\";\nimport { decode } from \"html-entity-codec\";\n\nassert.equal(\n  decode(\"Cat &amp; fiddle &#128572;&#127931;\"),\n  \"Cat & fiddle 😼🎻\",\n);\n```\n\n\n## Documentation\n\nPlease [visit codsen.com](https://codsen.com/os/html-entity-codec/) for a full description of the API. For **Changelog**, see [raw md on GitHub](https://github.com/codsen/codsen/blob/main/packages/html-entity-codec/CHANGELOG.md) or [the website](https://codsen.com/os/html-entity-codec/changelog).\n\n## Contributing\n\nTo report bugs or request features or assistance, [raise an issue](https://github.com/codsen/codsen/issues/new/choose) on GitHub.\n\n## Licence\n\nMIT License\n\nCopyright © 2010-2026 Roy Revelt and other contributors\n\nHTML [named character references](https://html.spec.whatwg.org/entities.json) - Copyright © WHATWG (Apple, Google, Mozilla, Microsoft) - see its [BSD-3-Clause disclaimer](https://opensource.org/licenses/BSD-3-Clause)\n\n<p align=\"center\"><img src=\"https://codsen.com/images/png-codsen-ok.png\" width=\"98\" alt=\"ok\" align=\"center\"> <img src=\"https://codsen.com/images/png-codsen-1.png\" width=\"148\" alt=\"codsen\" align=\"center\"> <img src=\"https://codsen.com/images/png-codsen-star-small.png\" width=\"32\" alt=\"star\" align=\"center\"></p>\n","readmeFilename":"README.md"}