modl-converter
v0.0.20
Published
A JSON to MODL library in TypeScript
Downloads
10
Readme
JSON to MODL Library
TypeScript Example
import { createJsonToModl } from './JsonToModl';
// Create a JSON to MODL converter
const jsonToModl = createJsonToModl();
// This is the expected result
const modlString = 'Hello=World';
// This is the test data
const jsonString = '{"Hello":"World"}';
console.log(jsonToModl.stringToModl(jsonString));
JavaScript Example
const api = require('modl-converter');
// This is the expected result
const modlString = 'Hello=World';
// This is the test data
const jsonString = '{"Hello":"World"}';
console.log(api.jsonToModl.stringToModl(jsonString));