Parses IAB VAST tags into iab-vast-model objects.
npm install iab-vast-parser    
Parses IAB VAST tags into
iab-vast-model objects.
``js
import parseVAST from 'iab-vast-parser'
const xmlStr = '
const vast = parseVAST(xmlStr)
// ... Do your thing ...
`
`js`
parseVAST(xml[, options])
The parameter xml can be either an XML string, or a parsed VAST DOM DocumentElement
or .
Currently, one option is supported: you can pass in a DOMParser instancedomParser
via the key. If you don't do so, a new DOMParser` will be created
on the fly.
- Tim De Pauw
- Christophe Bonello
MIT