@epubknowledge/entityverter
v0.1.0
Published
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.
Readme
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/entityverteryarn:
yarn add @epubknowledge/entityverterCLI
Install to NPM:
cd entityverter && npm i && npm linkIn the terminal:
evcli -i file.xhtmlIf 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 traversedresults: 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.
