mirror of
https://github.com/nodejs/node.git
synced 2025-05-07 19:56:48 +00:00

Greatly simplify how ESLint and its plugins are installed. PR-URL: https://github.com/nodejs/node/pull/53413 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
73 lines
1.7 KiB
Markdown
73 lines
1.7 KiB
Markdown
# character-entities
|
|
|
|
[![Build][build-badge]][build]
|
|
[![Downloads][downloads-badge]][downloads]
|
|
[![Size][size-badge]][size]
|
|
|
|
HTML character entity information.
|
|
|
|
## Install
|
|
|
|
[npm][]:
|
|
|
|
```sh
|
|
npm install character-entities
|
|
```
|
|
|
|
## Use
|
|
|
|
```js
|
|
var characterEntities = require('character-entities')
|
|
|
|
console.log(characterEntities.AElig) // => 'Æ'
|
|
console.log(characterEntities.aelig) // => 'æ'
|
|
console.log(characterEntities.amp) // => '&'
|
|
```
|
|
|
|
## API
|
|
|
|
### characterEntities
|
|
|
|
Mapping between (case-sensitive) character entity names to replacements.
|
|
|
|
## Support
|
|
|
|
See [`html.spec.whatwg.org`][html].
|
|
|
|
## Related
|
|
|
|
* [`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)
|
|
— Stringify HTML character references
|
|
|
|
## License
|
|
|
|
[MIT][license] © [Titus Wormer][author]
|
|
|
|
<!-- Definitions -->
|
|
|
|
[build-badge]: https://img.shields.io/travis/wooorm/character-entities.svg
|
|
|
|
[build]: https://travis-ci.org/wooorm/character-entities
|
|
|
|
[downloads-badge]: https://img.shields.io/npm/dm/character-entities.svg
|
|
|
|
[downloads]: https://www.npmjs.com/package/character-entities
|
|
|
|
[size-badge]: https://img.shields.io/bundlephobia/minzip/character-entities.svg
|
|
|
|
[size]: https://bundlephobia.com/result?p=character-entities
|
|
|
|
[npm]: https://docs.npmjs.com/cli/install
|
|
|
|
[license]: license
|
|
|
|
[author]: https://wooorm.com
|
|
|
|
[html]: https://html.spec.whatwg.org/multipage/syntax.html#named-character-references
|