The core functionallity of the matrix-service.
NOTE: This documentation assumes you are familiar with the matrix-service, if you would like to know more about it, read the documentation.
yarn add @sivrad/matrix// Import Matrix from this package.
import { Matrix } from '@sivrad/matrix';
// Import a simple JSON file driver.
import { JSONDBDriver } from '@sivrad/matrix';
// Create an instance and pass in the driver.
const mtx = new Matrix(new JSONDBDriver('myfile.json'));These are the steps to contribute to the Matrix Package.
Install node dependencies with yarn.
yarnThis generates internal types from the JSON schemas from this repo.
yarn generate-typesThis script will build the package and transpile the code to Javascript.
yarn buildAdditionally, you can just build the src/types/* files with:
yarn build-typesThis is usefull if you don't want to transpile into Javascript every time you change something.
