Sha256: ca83b95a4714d1c61f52ff5ef079cda37bb14c744337c49f225426b4b51c7799

Contents?: true

Size: 1.7 KB

Versions: 24

Compression:

Stored size: 1.7 KB

Contents

# 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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 node_modules/character-entities/readme.md
trusty-cms-5.0.7 node_modules/character-entities/readme.md
trusty-cms-5.0.6 node_modules/character-entities/readme.md
trusty-cms-5.0.5 node_modules/character-entities/readme.md
trusty-cms-5.0.4 node_modules/character-entities/readme.md
trusty-cms-5.0.3 node_modules/character-entities/readme.md
trusty-cms-5.0.2 node_modules/character-entities/readme.md
trusty-cms-5.0.1 node_modules/character-entities/readme.md
trusty-cms-4.3.5 node_modules/character-entities/readme.md
trusty-cms-5.0.0 node_modules/character-entities/readme.md
trusty-cms-4.3.4 node_modules/character-entities/readme.md
trusty-cms-4.3.3 node_modules/character-entities/readme.md
trusty-cms-4.3.2 node_modules/character-entities/readme.md
trusty-cms-4.3.1 node_modules/character-entities/readme.md
trusty-cms-4.3 node_modules/character-entities/readme.md
trusty-cms-4.2.3 node_modules/character-entities/readme.md
trusty-cms-4.2.2 node_modules/character-entities/readme.md
trusty-cms-4.2.1 node_modules/character-entities/readme.md
trusty-cms-4.2 node_modules/character-entities/readme.md
trusty-cms-4.1.9 node_modules/character-entities/readme.md