Skip to main content

nemathode.js

Installation#

$ npm install --save nemathode

or

$ yarn add nemathode

Fast introduction#

Read article if you have a few minutes here

or

Start with placing your config and creating an instance

nemathode.js
import Nemathode from 'nemathode';
import { config } from './config';
const nemathode = Nemathode({
...config,
});

evaluate#

  • Type: (expression: Expression) => boolean | number

Method for expression evaluation

nemathode.js
const res = nemathode.evaluate([...]);

evaluatePlease#

  • Type: (expression: Expression) => boolean | number

Doing same thing as evaluate but with love (don't forget being polite even with code)

nemathode.js
const res = nemathode.evaluatePlease([...]);

mathConstants#

  • Type: any

Static property of nemathode.js instance

nemathode.js
console.log(nemathode.mathConstants.SOME_CONST);