npm promotes metadefinitions
    Wondering what’s next for npm?Check out our public roadmap! »

    modl-interpreter
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.13 • Public • Published

    MODL Interpreter in TypeScript

    This repository contains an implementation of a MODL interpreter in TypeScript.

    Installation With NPM

    Use npm install --save modl-interpreter

    TypeScript Example

    import { Interpreter } from './modl-interpreter/Interpreter';
    
    const interpreter = new Interpreter();
    
    const jsonString = interpreter.interpretToJsonString('x = a MODL string');
    
    console.log(jsonString);

    This example produces the output:

    {"x":"a MODL string"}

    JavaScript Example

    const modl = require('modl-interpreter');
    
    const jsonString = modl.interpreter.interpretToJsonString('x = a MODL string');
    
    console.log(jsonString);

    This example produces the same output as above.

    Keywords

    none

    Install

    npm i modl-interpreter

    DownloadsWeekly Downloads

    137

    Version

    0.0.13

    License

    Apache-2.0

    Unpacked Size

    34.2 kB

    Total Files

    19

    Last publish

    Collaborators

    • avatar