Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@aliem/xmlpredator

1.0.0 • Public • Published

xmlpredator

it hunts down alien xml outputting cheesy html

API

The package exports a single function with signature:

  • String, the XML as string.
  • Object, options.

Options:

  • strict: Boolean, use a strict-mode SAX parser
  • ontext: Function, transform function with a single argument: String, outputs the transformed String.
  • onattribute: Function, transform function with two arguments: key: String, value: String, returns a String

LICENSE

MIT

Keywords

none

Install

npm i @aliem/xmlpredator

DownloadsWeekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • avatar