unruly / vast-parser Goto Github PK
View Code? Open in Web Editor NEWRecursively requests and parses VAST chains into a single JavaScript object.
Home Page: https://www.npmjs.com/package/@unruly/vast-parser
License: MIT License
Recursively requests and parses VAST chains into a single JavaScript object.
Home Page: https://www.npmjs.com/package/@unruly/vast-parser
License: MIT License
This isn't an issue, just a newbie user error. I'm having a difficult time setting up a basic test page. I created an index.html file and used the vast-parser.amd.js script but i'm unable to call the vastAdManager.requestVastChain to load the vast .xml that I would like to parse. Is there a little more detail you can give about setup or maybe provide a working html file?
Due to the core use case of vast-parser being to transform data from one structure to another, a type system will provide a huge benefit.
The main benefit is that the structure of VastResponse
can be self-documented and enforced. Right now, that structure isn't entirely obvious.
The other benefit is to auto-generate documentation (by using something like typedoc
). Keeping the README up-to-date and accurate by hand isn't easy.
With a type system, it'll also make it easier to move towards a more functional approach. Eventually allowing an application to tree-shake any unused code.
jQuery is currently used for:
This seems overkill considering how large jQuery is.
Event Emission can be reimplemented easily, or a smaller library can be used.
We can switch over to the Fetch API for requesting VAST. We have multiple options:
isomorphic-fetch
. This will increase the size of library and not all environment will need the polyfill.I'd go with Option 1 as the Fetch API seems widely supported in most browsers. And IMO, supplying polyfills for certain environments is not the job of a library.
On Install packages need to be upgraded.
I am a current Unruly employee, is anyone still working on this are have ownership (can be contacted)?
We probably want to remove jQuery first to avoid having to deal with any issues related to it. See #7.
From #4 - provide an example page that uses the parser and does something with a sample VAST file.
I can help if needed.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.