1.2.1 • Published 3 years ago

iab-vast-parser v1.2.1

Weekly downloads
3,851
License
MIT
Repository
github
Last release
3 years ago

iab-vast-parser

npm Dependencies Build Status Coverage Status JavaScript Standard Style

Parses IAB VAST tags into iab-vast-model objects.

Usage

import parseVAST from 'iab-vast-parser'

const xmlStr = '<VAST version="3.0">...</VAST>'
const vast = parseVAST(xmlStr)
// ... Do your thing ...

API

parseVAST(xml[, options])

The parameter xml can be either an XML string, or a parsed VAST DOM Document or Element.

Currently, one option is supported: you can pass in a DOMParser instance via the domParser key. If you don't do so, a new DOMParser will be created on the fly.

Maintainers

License

MIT

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.8.0

6 years ago

0.7.0

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago