Socket
Socket
Sign inDemoInstall

video-template-model

Package Overview
Dependencies
22
Maintainers
3
Versions
334
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    video-template-model

Template model describing video structure


Version published
Weekly downloads
26
increased by23.81%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Video Template Model

Template model describing video structure

Installing

$ npm install video-template-model

Example

parse template

const { Template } = require("video-template-model");
const template = Template.parse("...XML Content...");
template.render({ pretty: true });  //export pretty XML

build template

const { Template, Scene, elements: { Text } } = require("video-template-model");
const template = new Template({ width: 1920, height: 1080 });
const scene = new Scene({ duration: 5000 });
const text = new Text({ content: "Test" });
scene.appendChild(text);
template.appendChild(scene);
template.render({ pretty: true });  //export pretty XML
JSON.stringify(template);  //export JSON

compile template

Examples:examples/*

npm run example 001
npm run example 002
npm run example 003
npm run example 004
npm run example 005
npm run example 006

Keywords

FAQs

Last updated on 26 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc