{"id":23532664,"url":"https://github.com/outbrain-inc/cvast","last_synced_at":"2025-05-14T16:19:33.642Z","repository":{"id":152971927,"uuid":"126792041","full_name":"outbrain-inc/CVast","owner":"outbrain-inc","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-21T07:22:46.000Z","size":674,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-14T16:19:25.066Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outbrain-inc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-26T07:42:33.000Z","updated_at":"2024-11-11T18:27:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cece5e8-c5ee-4fed-8096-1f8351d67326","html_url":"https://github.com/outbrain-inc/CVast","commit_stats":null,"previous_names":["outbrain-inc/cvast"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2FCVast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2FCVast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2FCVast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outbrain-inc%2FCVast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outbrain-inc","download_url":"https://codeload.github.com/outbrain-inc/CVast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179900,"owners_count":22027884,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-25T23:12:13.724Z","updated_at":"2025-05-14T16:19:33.620Z","avatar_url":"https://github.com/outbrain-inc.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# CVAST\n\nVAST parser library for client side or server side use.\nValidation is done during parsing and throw exception / error on invalid schema.\nHeader only for use in a C++ project.\n\n# C++\nInclude cvast.hpp header file in your project.\n\n# Client side\nImport the distribution build located in dist/cvast.js. \n\n# Node.js\nN-API binding file will be soon available.\n\n# Usage\n\n    C_vast cvast(std::string xmlString, bool isPermissive = false);  \n\n### C++\n\n    #include \"cvast/cvast.hpp\"\n\t\n\tusing namespace Cvast;  \n\tusing namespace VideoTemplate;\n\t\n\t...\n\n    C_vast cvast(xmlString, true);  \n    Vast vast = cvast.getVast();\n\nGet access to the POD structure using:\n\n    string path = \"vast/ad0\";  \n    Ad* ad = cvast.api\u003cAd\u003e(path).get();\n\nOr retrieve data using:\n\n    printf(\"%s\\n\", ad-\u003eattrs.id.c_str());  \n    printf(\"%s\\n\", cvast.api\u003c\u003e(path).attr(\"id\")-\u003ec_str());\n   \nSee example.cpp for more examples.\n    \n### Javascript\nThe library call the *_onJSVastLoad* function when the module is loaded and ready to use. \n\n    function _onJSVastLoad () {  \n\t    var instance = new Module.JSVast(xmlString, true);\n\t    console.log(instance.getAttribute('vast/ad0', 'id'));\n\t    console.log(instance.getValue('vast/ad0/inLine/adSystem'));\n\t    console.log(instance.getValue('vast/ad0/inLine/adSyste'));\n\t    instance.delete();  \n\t}\n\nJavaScript, specifically ECMA-262 Edition 5.1, does not support [finalizers](http://en.wikipedia.org/wiki/Finalizer) or weak references with callbacks.  Therefore, javaScript code must explicitly delete any C++ object handles it has received, or the Emscripten heap will grow indefinitely.\n\n### Node.js\nComing soon\n\n# Data types\n*Currency*, *Mimetype* and *event* structures are located in cvast/datatypes/dataTypes.hpp. New events, mime-types or currencies can be added to the lists there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fcvast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutbrain-inc%2Fcvast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutbrain-inc%2Fcvast/lists"}