vMix utilities for JavaScript
npm install vmix-js-utils



vMix API utility library for Javascript can be used in either frontend or backend applications (Node,js).
It is recommended to import the package as a NPM package.
Alternatively you can download the source code and included it as a library manually.
This library can be used both in front-end and Node.js projects.
---
Simple use
``javascript
// Import all XML API functionality
import { XmlApi as vMixXmlApi } from 'vmix-js-utils'
// Import specific XML API functionality from the (sub)module
import { DataParser, Inputs } from 'vmix-js-utils/xml-api'
`
The modules are coded as classes, meaning that they are constructed with specific parameters.
The source code is written in TypeScript, and compiled to javascript to allow it to be used as a npm package.
It includes type declarations for TypeScript support, meaning that you can type defer i.e. the input types.
sh
npm install vmix-js-utils --save
or 'yarn add vmix-js-utils -d'
`In your code the simplest way to import the modules is the following:
`javascript
// ES6
import { DataParser, GeneralState } from 'vmix-js-utils/xml-api'// or commonjs
const { DataParser, GeneralState } = require('vmix-js-utils/xml-api')
// ...
`
Standalone project / Fork
The code can be cloned and tested as needed from the source code.
It is especially useful when deveoping and extending the functionality.`sh
git clone https://github.com/jensstigaard/vmix-js-utils.git
cd vmix-js-utils
`To run the project as standalone locally, you may want to first install the dependencies
`sh
npm install # or 'yarn'
`Compile TypeScript source code to JavaScript code
`sh
npm build # or 'yarn build'
`Run tests
`sh
npm test # or 'yarn test'
``Work in progress.