This commit is contained in:
Iliyan Angelov
2025-09-14 23:24:25 +03:00
commit c67067a2a4
71311 changed files with 6800714 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{
"0": "<22>",
"128": "€",
"130": "",
"131": "ƒ",
"132": "„",
"133": "…",
"134": "†",
"135": "‡",
"136": "ˆ",
"137": "‰",
"138": "Š",
"139": "",
"140": "Œ",
"142": "Ž",
"145": "",
"146": "",
"147": "“",
"148": "”",
"149": "•",
"150": "",
"151": "—",
"152": "˜",
"153": "™",
"154": "š",
"155": "",
"156": "œ",
"158": "ž",
"159": "Ÿ"
}

View File

@@ -0,0 +1,22 @@
(The MIT License)
Copyright (c) 2015 Titus Wormer <tituswormer@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@@ -0,0 +1,74 @@
{
"name": "character-reference-invalid",
"version": "1.1.4",
"description": "HTML invalid numeric character reference information",
"license": "MIT",
"keywords": [
"html",
"entity",
"numeric",
"character",
"reference",
"replacement",
"invalid",
"name"
],
"repository": "wooorm/character-reference-invalid",
"bugs": "https://github.com/wooorm/character-reference-invalid/issues",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/wooorm"
},
"author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
"contributors": [
"Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
],
"main": "index.json",
"files": [
"index.json"
],
"dependencies": {},
"devDependencies": {
"bail": "^1.0.0",
"browserify": "^16.0.0",
"concat-stream": "^2.0.0",
"hast-util-select": "^3.0.0",
"hast-util-to-string": "^1.0.0",
"rehype-parse": "^6.0.0",
"remark-cli": "^7.0.0",
"remark-preset-wooorm": "^6.0.0",
"tape": "^4.0.0",
"tinyify": "^2.0.0",
"unified": "^8.0.0",
"xo": "^0.25.0"
},
"scripts": {
"generate": "node build",
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
"build-bundle": "browserify index.json -s characterReferenceInvalid -o character-reference-invalid.js",
"build-mangle": "browserify index.json -s characterReferenceInvalid -p tinyify -o character-reference-invalid.min.js",
"build": "npm run build-bundle && npm run build-mangle",
"test-api": "node test",
"test": "npm run generate && npm run format && npm run build && npm run test-api"
},
"prettier": {
"tabWidth": 2,
"useTabs": false,
"singleQuote": true,
"bracketSpacing": false,
"semi": false,
"trailingComma": "none"
},
"xo": {
"prettier": true,
"esnext": false,
"ignores": [
"character-reference-invalid.js"
]
},
"remarkConfig": {
"plugins": [
"preset-wooorm"
]
}
}

View File

@@ -0,0 +1,74 @@
# character-reference-invalid
[![Build][build-badge]][build]
[![Downloads][downloads-badge]][downloads]
[![Size][size-badge]][size]
HTML invalid numeric character reference information.
## Install
[npm][]:
```sh
npm install character-reference-invalid
```
## Use
```js
var characterReferenceInvalid = require('character-reference-invalid')
console.log(characterReferenceInvalid[0x80]) // => '€'
console.log(characterReferenceInvalid[0x89]) // => '‰'
console.log(characterReferenceInvalid[0x99]) // => '™'
```
## API
### `characterReferenceInvalid`
Mapping between invalid numeric character reference to replacements.
## Support
See [`html.spec.whatwg.org`][html].
## Related
* [`character-entities`](https://github.com/wooorm/character-entities)
— HTML character entity info
* [`character-entities-html4`](https://github.com/wooorm/character-entities-html4)
— HTML 4 character entity info
* [`character-entities-legacy`](https://github.com/wooorm/character-entities-legacy)
— Legacy character entity info
* [`parse-entities`](https://github.com/wooorm/parse-entities)
— Parse HTML character references
* [`stringify-entities`](https://github.com/wooorm/stringify-entities)
— Serialize HTML character references
## License
[MIT][license] © [Titus Wormer][author]
<!-- Definitions -->
[build-badge]: https://img.shields.io/travis/wooorm/character-reference-invalid.svg
[build]: https://travis-ci.org/wooorm/character-reference-invalid
[downloads-badge]: https://img.shields.io/npm/dm/character-reference-invalid.svg
[downloads]: https://www.npmjs.com/package/character-reference-invalid
[size-badge]: https://img.shields.io/bundlephobia/minzip/character-reference-invalid.svg
[size]: https://bundlephobia.com/result?p=character-reference-invalid
[npm]: https://docs.npmjs.com/cli/install
[license]: license
[author]: https://wooorm.com
[html]: https://html.spec.whatwg.org/multipage/syntax.html#table-charref-overrides