numenor

0.1.7 • Public • Published

numenor

npm version

Customizable, safe evaluator of JavaScript-like expressions.

WARNING: Still highly experimental, do not use in production!

Installing

Simply add numenor as a dependency via Yarn (or NPM):

yarn add numenor

Then import ExpressionEvaluator class in your code:

import { ExpressionEvaluator } from 'numenor';

const evaluator = new ExpressionEvaluator();

evaluator.evaluate('2 + 2 / 2'); // -> 3

API

TODO: WRITE ME

Versioning

This project uses SemVer for versioning. For the versions available, see the tags on this repository.

Is it any good?

Yes. It will be...

License

This project is licensed under the MIT License - see the LICENSE file for details

/numenor/

    Package Sidebar

    Install

    npm i numenor

    Weekly Downloads

    548

    Version

    0.1.7

    License

    MIT

    Unpacked Size

    159 kB

    Total Files

    61

    Last publish

    Collaborators

    • raleksandar