{"_id":"parse-entities","_rev":"3759803","name":"parse-entities","description":"Parse HTML character references","dist-tags":{"latest":"4.0.2"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2025-04-22T08:05:00.000Z","created":"2015-12-23T19:38:21.860Z","4.0.2":"2024-12-13T11:08:08.736Z","4.0.1":"2023-02-09T09:52:05.482Z","4.0.0":"2021-11-22T19:20:00.555Z","3.1.0":"2021-10-29T13:22:18.633Z","3.0.0":"2021-03-26T12:48:12.095Z","2.0.0":"2020-01-14T08:17:50.211Z","1.2.2":"2019-05-15T09:35:12.431Z","1.2.1":"2019-02-23T23:01:45.542Z","1.2.0":"2018-09-28T12:10:13.781Z","1.1.2":"2018-04-29T09:45:34.893Z","1.1.1":"2017-06-16T18:17:18.728Z","1.1.0":"2016-07-31T11:28:05.815Z","1.0.2":"2015-12-29T09:26:21.159Z","1.0.1":"2015-12-27T09:50:13.649Z","1.0.0":"2015-12-23T19:38:21.860Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"versions":{"4.0.2":{"name":"parse-entities","version":"4.0.2","description":"Parse HTML character references","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","character-entities-legacy":"^3.0.0","character-reference-invalid":"^2.0.0","decode-named-character-reference":"^1.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0","is-hexadecimal":"^2.0.0"},"devDependencies":{"@types/node":"^22.0.0","c8":"^10.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-wooorm":"^10.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.60.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"@typescript-eslint/consistent-type-definitions":"off","@typescript-eslint/ban-types":"off","complexity":"off","max-depth":"off","no-bitwise":"off","unicorn/numeric-separators-style":"off","unicorn/prefer-code-point":"off"}},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"_id":"parse-entities@4.0.2","gitHead":"f95cbc9d8b383ca94996e7abcacf78a2eee66546","homepage":"https://github.com/wooorm/parse-entities#readme","_nodeVersion":"23.1.0","_npmVersion":"10.9.1","dist":{"shasum":"61d46f5ed28e4ee62e9ddc43d6b010188443f159","size":8195,"noattachment":false,"key":"/parse-entities/-/parse-entities-4.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-4.0.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/parse-entities_4.0.2_1734088088569_0.09591141644053236"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-12-13T11:08:08.736Z","publish_time":1734088088736,"_source_registry_name":"default","_cnpm_publish_time":1734088088736},"4.0.1":{"name":"parse-entities","version":"4.0.1","description":"Parse HTML character references","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","character-entities":"^2.0.0","character-entities-legacy":"^3.0.0","character-reference-invalid":"^2.0.0","decode-named-character-reference":"^1.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0","is-hexadecimal":"^2.0.0"},"devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off","max-depth":"off","no-bitwise":"off","unicorn/numeric-separators-style":"off","unicorn/prefer-code-point":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"96effa6ca01f9d2d6399474ad227eb5c72731462","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@4.0.1","_nodeVersion":"19.3.0","_npmVersion":"9.2.0","dist":{"shasum":"4e2a01111fb1c986549b944af39eeda258fc9e4e","size":7909,"noattachment":false,"key":"/parse-entities/-/parse-entities-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-4.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_4.0.1_1675936325295_0.7001677124793373"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-02-09T09:52:05.482Z","publish_time":1675936325482,"_cnpm_publish_time":1675936325482},"4.0.0":{"name":"parse-entities","version":"4.0.0","description":"Parse HTML character references","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/unist":"^2.0.0","character-entities":"^2.0.0","character-entities-legacy":"^3.0.0","character-reference-invalid":"^2.0.0","decode-named-character-reference":"^1.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0","is-hexadecimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.46.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"lib/**/*.d.ts\" \"{decode-entity,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off","max-depth":"off","no-bitwise":"off","unicorn/numeric-separators-style":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"2df6a925a7d68a9858433e81d5a728204774f7c9","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@4.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"f67c856d4e3fe19b1a445c3fabe78dcdc1053eeb","size":7929,"noattachment":false,"key":"/parse-entities/-/parse-entities-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_4.0.0_1637608800377_0.6780350415223759"},"_hasShrinkwrap":false,"publish_time":1637608800555,"_cnpm_publish_time":1637608800555},"3.1.0":{"name":"parse-entities","version":"3.1.0","description":"Parse HTML character references","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","browser":{"./lib/decode-entity.js":"./lib/decode-entity.browser.js"},"react-native":{"./lib/decode-entity.js":"./lib/decode-entity.js"},"dependencies":{"@types/unist":"^2.0.0","character-entities":"^2.0.0","character-entities-legacy":"^3.0.0","character-reference-invalid":"^2.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0","is-hexadecimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.45.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","build":"rimraf \"lib/**/*.d.ts\" \"{decode-entity,test}.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off","max-depth":"off","no-bitwise":"off","unicorn/numeric-separators-style":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"6d7cef95baa04c3430f929cb017b541f54b9e863","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@3.1.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"82b04f2c26f2b3604e4df1972beb231f20d207e2","size":8874,"noattachment":false,"key":"/parse-entities/-/parse-entities-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-3.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_3.1.0_1635513738244_0.9997043906918892"},"_hasShrinkwrap":false,"publish_time":1635513738633,"_cnpm_publish_time":1635513738633},"3.0.0":{"name":"parse-entities","version":"3.0.0","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"types/index.d.ts","browser":{"./decode-entity.js":"./decode-entity.browser.js"},"react-native":{"./decode-entity.js":"./decode-entity.js"},"dependencies":{"character-entities":"^2.0.0","character-entities-legacy":"^2.0.0","character-reference-invalid":"^2.0.0","is-alphanumerical":"^2.0.0","is-decimal":"^2.0.0","is-hexadecimal":"^2.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepack":"npm run build && npm run format","build":"rimraf \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"complexity":"off","max-depth":"off","no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true},"gitHead":"99a442003ca9d529db6b36af227d2f256b766dbd","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@3.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"shasum":"9ed6d6569b6cfc95ade058d683ddef239dad60dc","size":7824,"noattachment":false,"key":"/parse-entities/-/parse-entities-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_3.0.0_1616762891893_0.5955264982157762"},"_hasShrinkwrap":false,"publish_time":1616762892095,"_cnpm_publish_time":1616762892095},"2.0.0":{"name":"parse-entities","version":"2.0.0","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"browser":{"./decode-entity.js":"./decode-entity.browser.js"},"react-native":{"./decode-entity.js":"./decode-entity.js"},"types":"types/index.d.ts","dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","dtslint":"^2.0.0","nyc":"^15.0.0","prettier":"^1.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tape-run":"^6.0.0","tinyify":"^2.0.0","xo":"^0.25.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix","build-bundle":"browserify . -s parseEntities > parse-entities.js","build-mangle":"browserify . -s parseEntities -p tinyify > parse-entities.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-browser":"browserify test.js | tape-run","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-self-compare":"off","guard-for-in":"off","max-depth":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"db8ace776923cf4b874e2e87f6b22aac6ad251d4","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@2.0.0","_nodeVersion":"13.0.1","_npmVersion":"6.13.6","dist":{"shasum":"53c6eb5b9314a1f4ec99fa0fdf7ce01ecda0cbe8","size":7742,"noattachment":false,"key":"/parse-entities/-/parse-entities-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-2.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_2.0.0_1578989870100_0.3236971145418521"},"_hasShrinkwrap":false,"publish_time":1578989870211,"_cnpm_publish_time":1578989870211},"1.2.2":{"name":"parse-entities","version":"1.2.2","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"browser":{"./decode-entity.js":"./decode-entity.browser.js"},"react-native":{"./decode-entity.js":"./decode-entity.js"},"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.12.1","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.2.0","tape-run":"^6.0.0","tinyify":"^2.4.3","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s parseEntities > parse-entities.js","build-mangle":"browserify . -s parseEntities -p tinyify > parse-entities.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-browser":"browserify test.js | tape-run","test":"npm run format && npm run build && npm run test-coverage && npm run test-browser"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"no-self-compare":"off","guard-for-in":"off","max-depth":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"3fd80962ca032e5782210ca915b639f005e85a15","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.2.2","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"shasum":"c31bf0f653b6661354f8973559cb86dd1d5edf50","size":7116,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.2.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_1.2.2_1557912912266_0.684885382808408"},"_hasShrinkwrap":false,"publish_time":1557912912431,"_cnpm_publish_time":1557912912431},"1.2.1":{"name":"parse-entities","version":"1.2.1","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"browser":{"./decode-entity.js":"./decode-entity.browser.js"},"react-native":{"./decode-entity.js":"./decode-entity.js"},"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^11.0.0","prettier":"^1.12.1","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.2.0","tape-run":"^4.0.0","tinyify":"^2.4.3","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify . -s parseEntities > parse-entities.js","build-mangle":"browserify . -s parseEntities -p tinyify > parse-entities.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-browser":"browserify test.js | tape-run","test":"npm run format && npm run build && npm run test-coverage && npm run test-browser"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/number-literal-case":"off","object-shorthand":"off","no-var":"off","prefer-arrow-callback":"off","guard-for-in":"off","no-negated-condition":"off","max-depth":"off","complexity":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"f179281072c0f337d57a281e24f0ed89938cd42d","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.2.1","_nodeVersion":"11.9.0","_npmVersion":"6.7.0","dist":{"shasum":"2c761ced065ba7dc68148580b5a225e4918cdd69","size":7016,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.2.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_1.2.1_1550962905365_0.965713662792796"},"_hasShrinkwrap":false,"publish_time":1550962905542,"_cnpm_publish_time":1550962905542},"1.2.0":{"name":"parse-entities","version":"1.2.0","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"browser":{"./decode-entity.js":"./decode-entity.browser.js"},"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","nyc":"^11.0.0","prettier":"^1.12.1","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.2.0","tape-run":"^4.0.0","tinyify":"^2.4.3","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify . -s parseEntities > parse-entities.js","build-mangle":"browserify . -s parseEntities -p tinyify > parse-entities.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test-browser":"browserify test.js | tape-run","test":"npm run format && npm run build && npm run test-coverage && npm run test-browser"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/number-literal-case":"off","object-shorthand":"off","no-var":"off","prefer-arrow-callback":"off","guard-for-in":"off","no-negated-condition":"off","max-depth":"off","complexity":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"f0e0199a72c0e1c0c8b8504705af9c448aa16688","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"9deac087661b2e36814153cb78d7e54a4c5fd6f4","size":7007,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.2.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_1.2.0_1538136613600_0.3049845350237088"},"_hasShrinkwrap":false,"publish_time":1538136613781,"_cnpm_publish_time":1538136613781},"1.1.2":{"name":"parse-entities","version":"1.1.2","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^16.0.0","esmangle":"^1.0.0","nyc":"^11.0.0","prettier":"^1.12.1","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.2.0","xo":"^0.20.0"},"scripts":{"format":"remark . -qfo && prettier --write '**/*.js' && xo --fix","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/number-literal-case":"off","object-shorthand":"off","no-var":"off","prefer-arrow-callback":"off","guard-for-in":"off","no-negated-condition":"off","max-depth":"off","complexity":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"668d1fc54bb85530c75ac7da197252a23ea65f09","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.1.2","_npmVersion":"5.6.0","_nodeVersion":"9.5.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"9eaf719b29dc3bd62246b4332009072e01527777","size":6503,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.1.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities_1.1.2_1524995134809_0.24563102206299092"},"_hasShrinkwrap":false,"publish_time":1524995134893,"_cnpm_publish_time":1524995134893},"1.1.1":{"name":"parse-entities","version":"1.1.1","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js"],"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","nyc":"^11.0.0","remark-cli":"^3.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.2.0","xo":"^0.18.0"},"scripts":{"build-md":"remark . -qfo","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"rules":{"guard-for-in":"off","no-negated-condition":"off","max-depth":"off","complexity":"off"},"ignores":["parse-entities.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"97b0395ac443ba8f49d34cb0de07da186f654108","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.1.1","_shasum":"8112d88471319f27abae4d64964b122fe4e1b890","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"8112d88471319f27abae4d64964b122fe4e1b890","size":6506,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.1.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-entities-1.1.1.tgz_1497637037808_0.8155671106651425"},"directories":{},"publish_time":1497637038728,"_hasShrinkwrap":false,"_cnpm_publish_time":1497637038728},"1.1.0":{"name":"parse-entities","version":"1.1.0","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"files":["index.js"],"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0","has":"^1.0.1","is-alphanumerical":"^1.0.0","is-decimal":"^1.0.0","is-hexadecimal":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"devDependencies":{"browserify":"^13.0.0","esmangle":"^1.0.0","nyc":"^7.1.0","remark-cli":"^1.0.0","remark-comment-config":"^4.0.0","remark-github":"^5.0.0","remark-lint":"^4.0.0","remark-validate-links":"^4.0.0","tape":"^4.2.0","xo":"^0.16.0"},"scripts":{"build-md":"remark . --quiet  --frail","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test.js","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"rules":{"guard-for-in":"off","no-negated-condition":"off","max-depth":"off","max-lines":"off","complexity":"off","no-eq-null":"off","eqeqeq":"off"},"ignores":["parse-entities.js","parse-entities.min.js"]},"remarkConfig":{"output":true,"plugins":{"lint":{"heading-increment":false,"list-item-spacing":false,"no-duplicate-headings":false},"github":null,"comment-config":null,"validate-links":null},"settings":{"bullet":"*"}},"gitHead":"5ff1136a4921a216e7baaefa23febb40d68b4712","homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.1.0","_shasum":"4bc58f35fdc8e65dded35a12f2e40223ca24a3f7","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"4bc58f35fdc8e65dded35a12f2e40223ca24a3f7","size":7163,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.1.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/parse-entities-1.1.0.tgz_1469964484071_0.15948437829501927"},"directories":{},"publish_time":1469964485815,"_cnpm_publish_time":1469964485815,"_hasShrinkwrap":false},"1.0.2":{"name":"parse-entities","version":"1.0.2","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"files":["index.js","LICENSE"],"dependencies":{"character-entities":"^1.0.0","character-entities-legacy":"^1.0.0","character-reference-invalid":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"browserify":"^12.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.4.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","remark":"^3.0.0","remark-comment-config":"^2.0.0","remark-github":"^2.0.0","remark-lint":"^2.0.0","remark-slug":"^3.0.0","remark-validate-links":"^2.0.0","remark-yaml-config":"^2.0.0","tape":"^4.2.0"},"scripts":{"build-md":"remark . --quiet  --frail","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test.js","test-coverage":"istanbul cover test.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"1a5feddc5d9c0029fa802dc1ecb2968190d7361f","bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.0.2","_shasum":"6ec4c6014e25a310d3a146661208f0380edfd41a","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"6ec4c6014e25a310d3a146661208f0380edfd41a","size":7362,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.0.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"publish_time":1451381181159,"_cnpm_publish_time":1451381181159,"_hasShrinkwrap":false},"1.0.1":{"name":"parse-entities","version":"1.0.1","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"files":["index.js","LICENSE"],"dependencies":{"character-entities":"^1.0.0","character-reference-invalid":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"browserify":"^12.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.4.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","remark":"^3.0.0","remark-comment-config":"^2.0.0","remark-github":"^2.0.0","remark-lint":"^2.0.0","remark-slug":"^3.0.0","remark-validate-links":"^2.0.0","remark-yaml-config":"^2.0.0","tape":"^4.2.0"},"scripts":{"build-md":"remark . --quiet  --frail","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test.js","test-coverage":"istanbul cover test.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"172e1dace612ffc00c9953d84822ade9d1d05f10","bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.0.1","_shasum":"7dfeea66740a2b37e20156da9c55da56e97b6aba","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"7dfeea66740a2b37e20156da9c55da56e97b6aba","size":7294,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.0.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"publish_time":1451209813649,"_cnpm_publish_time":1451209813649,"_hasShrinkwrap":false},"1.0.0":{"name":"parse-entities","version":"1.0.0","description":"Parse HTML character references: fast, spec-compliant, positional information","license":"MIT","keywords":["parse","html","character","reference","entity","entities"],"files":["index.js","LICENSE"],"dependencies":{"character-entities":"^1.0.0","character-reference-invalid":"^1.0.0"},"repository":{"type":"git","url":"git+https://github.com/wooorm/parse-entities.git"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com"},"devDependencies":{"browserify":"^12.0.0","eslint":"^1.0.0","esmangle":"^1.0.0","istanbul":"^0.4.0","jscs":"^2.0.0","jscs-jsdoc":"^1.0.0","mdast":"^2.0.0","mdast-comment-config":"^1.0.0","mdast-github":"^1.0.0","mdast-lint":"^1.0.0","mdast-slug":"^2.0.0","mdast-validate-links":"^1.1.1","mdast-yaml-config":"^1.0.0","tape":"^4.2.0"},"scripts":{"build-md":"mdast . --quiet  --frail","build-bundle":"browserify index.js --bare -s parseEntities > parse-entities.js","build-mangle":"esmangle parse-entities.js > parse-entities.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint-api":"eslint .","lint-style":"jscs --reporter inline .","lint":"npm run lint-api && npm run lint-style","test-api":"node test.js","test-coverage":"istanbul cover test.js","test":"npm run build && npm run lint && npm run test-coverage"},"gitHead":"8b116c8657d9f89ad52599cde6622f984820930d","bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"homepage":"https://github.com/wooorm/parse-entities#readme","_id":"parse-entities@1.0.0","_shasum":"127d643e3110fef3f893e915cf67bd6abb4de878","_from":".","_npmVersion":"3.5.0","_nodeVersion":"5.1.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"127d643e3110fef3f893e915cf67bd6abb4de878","size":7195,"noattachment":false,"key":"/parse-entities/-/parse-entities-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/parse-entities/download/parse-entities-1.0.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"publish_time":1450899501860,"_cnpm_publish_time":1450899501860,"_hasShrinkwrap":false}},"readme":"# parse-entities\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nParse HTML character references.\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When should I use this?](#when-should-i-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`parseEntities(value[, options])`](#parseentitiesvalue-options)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Related](#related)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis is a small and powerful decoder of HTML character references (often called\nentities).\n\n## When should I use this?\n\nYou can use this for spec-compliant decoding of character references.\nIt’s small and fast enough to do that well.\nYou can also use this when making a linter, because there are different warnings\nemitted with reasons for why and positional info on where they happened.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install parse-entities\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {parseEntities} from 'https://esm.sh/parse-entities@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {parseEntities} from 'https://esm.sh/parse-entities@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {parseEntities} from 'parse-entities'\n\nconsole.log(parseEntities('alpha &amp bravo')))\n// => alpha & bravo\n\nconsole.log(parseEntities('charlie &copycat; delta'))\n// => charlie ©cat; delta\n\nconsole.log(parseEntities('echo &copy; foxtrot &#8800; golf &#x1D306; hotel'))\n// => echo © foxtrot ≠ golf ???? hotel\n```\n\n## API\n\nThis package exports the identifier `parseEntities`.\nThere is no default export.\n\n### `parseEntities(value[, options])`\n\nParse HTML character references.\n\n##### `options`\n\nConfiguration (optional).\n\n###### `options.additional`\n\nAdditional character to accept (`string?`, default: `''`).\nThis allows other characters, without error, when following an ampersand.\n\n###### `options.attribute`\n\nWhether to parse `value` as an attribute value (`boolean?`, default: `false`).\nThis results in slightly different behavior.\n\n###### `options.nonTerminated`\n\nWhether to allow nonterminated references (`boolean`, default: `true`).\nFor example, `&copycat` for `©cat`.\nThis behavior is compliant to the spec but can lead to unexpected results.\n\n###### `options.position`\n\nStarting `position` of `value` (`Position` or `Point`, optional).\nUseful when dealing with values nested in some sort of syntax tree.\nThe default is:\n\n```js\n{line: 1, column: 1, offset: 0}\n```\n\n###### `options.warning`\n\nError handler ([`Function?`][warning]).\n\n###### `options.text`\n\nText handler ([`Function?`][text]).\n\n###### `options.reference`\n\nReference handler ([`Function?`][reference]).\n\n###### `options.warningContext`\n\nContext used when calling `warning` (`'*'`, optional).\n\n###### `options.textContext`\n\nContext used when calling `text` (`'*'`, optional).\n\n###### `options.referenceContext`\n\nContext used when calling `reference` (`'*'`, optional)\n\n##### Returns\n\n`string` — decoded `value`.\n\n#### `function warning(reason, point, code)`\n\nError handler.\n\n###### Parameters\n\n* `this` (`*`) — refers to `warningContext` when given to `parseEntities`\n* `reason` (`string`) — human readable reason for emitting a parse error\n* `point` ([`Point`][point]) — place where the error occurred\n* `code` (`number`) — machine readable code the error\n\nThe following codes are used:\n\n| Code | Example            | Note                                          |\n| ---- | ------------------ | --------------------------------------------- |\n| `1`  | `foo &amp bar`     | Missing semicolon (named)                     |\n| `2`  | `foo &#123 bar`    | Missing semicolon (numeric)                   |\n| `3`  | `Foo &bar baz`     | Empty (named)                                 |\n| `4`  | `Foo &#`           | Empty (numeric)                               |\n| `5`  | `Foo &bar; baz`    | Unknown (named)                               |\n| `6`  | `Foo &#128; baz`   | [Disallowed reference][invalid]               |\n| `7`  | `Foo &#xD800; baz` | Prohibited: outside permissible unicode range |\n\n#### `function text(value, position)`\n\nText handler.\n\n###### Parameters\n\n* `this` (`*`) — refers to `textContext` when given to `parseEntities`\n* `value` (`string`) — string of content\n* `position` ([`Position`][position]) — place where `value` starts and ends\n\n#### `function reference(value, position, source)`\n\nCharacter reference handler.\n\n###### Parameters\n\n* `this` (`*`) — refers to `referenceContext` when given to `parseEntities`\n* `value` (`string`) — decoded character reference\n* `position` ([`Position`][position]) — place where `source` starts and ends\n* `source` (`string`) — raw source of character reference\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types `Options`, `WarningHandler`,\n`ReferenceHandler`, and `TextHandler`.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Security\n\nThis package is safe: it matches the HTML spec to parse character references.\n\n## Related\n\n* [`wooorm/stringify-entities`](https://github.com/wooorm/stringify-entities)\n  — encode HTML character references\n* [`wooorm/character-entities`](https://github.com/wooorm/character-entities)\n  — info on character references\n* [`wooorm/character-entities-html4`](https://github.com/wooorm/character-entities-html4)\n  — info on HTML4 character references\n* [`wooorm/character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)\n  — info on legacy character references\n* [`wooorm/character-reference-invalid`](https://github.com/wooorm/character-reference-invalid)\n  — info on invalid numeric character references\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/parse-entities/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/parse-entities/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/parse-entities.svg\n\n[coverage]: https://codecov.io/github/wooorm/parse-entities\n\n[downloads-badge]: https://img.shields.io/npm/dm/parse-entities.svg\n\n[downloads]: https://www.npmjs.com/package/parse-entities\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/parse-entities.svg\n\n[size]: https://bundlephobia.com/result?p=parse-entities\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[warning]: #function-warningreason-point-code\n\n[text]: #function-textvalue-position\n\n[reference]: #function-referencevalue-position-source\n\n[invalid]: https://github.com/wooorm/character-reference-invalid\n\n[point]: https://github.com/syntax-tree/unist#point\n\n[position]: https://github.com/syntax-tree/unist#position\n\n[contribute]: https://opensource.guide/how-to-contribute/\n","_attachments":{},"homepage":"https://github.com/wooorm/parse-entities#readme","bugs":{"url":"https://github.com/wooorm/parse-entities/issues"},"license":"MIT"}