Skip to content

A NPM package that converts a file's entities from name and rendered to their respected numerical value. If a bad entity is found it will be deleted.

License

Notifications You must be signed in to change notification settings

epubknowledge/entityverter

Repository files navigation

Entityverter

A NPM package that converts a file's entities from name and rendered to their respected numerical value. If a bad entity is found it will be deleted.

Basic Usage

NPM:

npm i @epubknowledge/entityverter

yarn:

yarn add @epubknowledge/entityverter

CLI

Install to NPM:

cd entityverter && npm i && npm link

In the terminal:

evcli -i file.xhtml

If using this as a CLI and wanting advanced documentation it can be found at CLI documentation.

Package

This can take two arguments:

  • data: The content going in that will be traversed
  • results: Wether or not you want to know what was changed which would change the return from string to an object.
const entityverter(data, results)

If using this as a package and wanting advanced documentation it can be found a Package documentation.

About

A NPM package that converts a file's entities from name and rendered to their respected numerical value. If a bad entity is found it will be deleted.

Topics

Resources

License

Stars

Watchers

Forks