vast-parser
v1.0.1
Published
[![JavaScript Style Guide][js-standard-image]][js-standard-url] [![NPM version][npm-image]][npm-url] [![NPM download][npm-download]][npm-url] [![Dependency Status][depstat-image]][depstat-url] [![DevDependency Status][depstat-dev-image]][depstat-dev-url]
Downloads
6
Readme
vast-parser
Just another IAB VAST 4.0 format parser.
Install
npm install vast-parser
Usage
Browser
<script src="/path/to/vast-parser.min.js"></script>
<script>
var xmlString = '<VAST version="4.0">...</VAST>'
var vast = VASTParser.parseFromXML(xmlString)
// ... Do your thing ...
</script>
Node
import XmlDom from 'xmldom'
import VASTParser from 'vast-parser'
const xmlString = '<VAST version="4.0">...</VAST>'
const vast = VASTParser.parseFromXML(xmlString, {DOMParser: XmlDom.DOMParser} )
// ... Do your thing ...
API
Inspired By
TODO
- [ ] Need more VAST 4.0 test cases