Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

damon-utils

adrianturcev829MPL-2.03.0.0

A post-processing library for DAMON

post-processing, damon, rendering

readme

DAMON-utils

A post-processing library for DAMON

Installation

Node:

npm install damon-utils

Building

npm run watch # dev
npm run build # distribuable

Usage

Core methods:

const Damon = require('damon2'),
    DamonUtils = require('damon-utils);
let damon = new Damon(),
    damonUtils = new DamonUtils(damon);

let damonString = `
    - Divide: {}
        - n
        - Add: {}
            - 1
            - n`;

console.log(damonUtils.damonToSExpression(damonString));
// [
//     "Divide",
//     "n",
//     [
//         "Add",
//         "1",
//         "n"
//     ]
// ],

License

Copyright (c) Adrian Turcev. All rights reserved.

Licensed under the MPL-2.0 license.