cordlr-math

Cordlr math plugin

Usage no npm install needed!

<script type="module">
  import cordlrMath from 'https://cdn.skypack.dev/cordlr-math';
</script>

README

cordlr-math NPM version Build Status

Cordlr math plugin

Installation

$ npm install --save cordlr-math

Then add it to your config.

{
  "plugins": [
    "cordlr-math"
  ],
  "math": {
    "format": "Computed: {{answer}}" // How should the answer be formatted
  }
}

Usage

math [options] <equation>

It also supports variables, use them like so

math -a 1 -b 2 -- a + b

-- is necessary to tell cordlr-math where the equation starts and variable assignment ends.

License

MIT © Sean Wilson