Nightly Procrastination Machine

    iab-vast-parser

    1.2.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i iab-vast-parser

    DownloadsWeekly Downloads

    612

    Version

    1.2.1

    License

    MIT

    Unpacked Size

    92 kB

    Total Files

    115

    Last publish

    Collaborators

    • kinderswan1
    • timdebacker
    • timdp
    • pietermees
    • ivanschwarz
    • laurentdesmet
    • rmerlier
    • sdhh
    • driesv
    • timvandamme
    • thomastoye
    • mariusk
    • wouter.d
    • dv-denisbarabanov
    • cvrptn
    • flouwet_dv
    • koendekeyser
    • alexander.kapitonenko
    • mbdv
    • a-yakhimovich
    • artur-godunov