0.0.3 • Published 1 year ago

@ygoto3/omap-vast-parser v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ygoto3/omap-vast-parser

Overview

A VAST parser implementaion.

Documentation

API document is available.

Getting Started

To install @ygoto3/omap-vast-parser, run the command below.

$ npm install @ygoto3/omap-vast-parser --save

Then you can parse a VAST text using @ygoto3/omap-vast-parser in your application code.

import { VASTParser } from '@ygoto3/omap-vast-parser';

const vast = `
<?xml version="1.0" encoding="UTF-8"?>
<VAST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vast.xsd" version="3.0">
...
</VAST>
`;

const parser = new VASTParser(vast);
const parsedVAST = parser.parse();
const ads = parsedVMAP?.ads;
0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

2 years ago

0.0.0

2 years ago