# entities [](https://npmjs.org/package/entities) [](https://npmjs.org/package/entities) [](http://travis-ci.org/fb55/entities) [](https://coveralls.io/r/fb55/entities)
-Encode & decode XML and HTML entities with ease.
+Encode & decode HTML & XML entities with ease & speed.
## How to…
### …install `entities`
- npm i entities
+ npm install entities
### …use `entities`
This is how `entities` compares to other libraries on a very basic benchmark (see `scripts/benchmark.ts`, for 10,000,000 iterations):
-| Library | `decode` performance | `encode` performance |
-| -------------- | -------------------- | -------------------- |
-| entities | 10.809s | 17.683s |
-| html-entities | 14.029s | 22.670s |
-| he | 16.163s | 44.010s |
-| parse-entities | 28.507s | N/A |
+| Library | `decode` performance | `encode` performance | Bundle size |
+| -------------- | -------------------- | -------------------- | -------------------------------------------------------------------------- |
+| entities | 10.809s | 17.683s |  |
+| html-entities | 14.029s | 22.670s |  |
+| he | 16.163s | 44.010s |  |
+| parse-entities | 28.507s | N/A |  |
---