expressionts

2.0.0 • Public • Published

expressionTS NPM version

Build Status Codacy Badge Codacy Badge

A library written in TypeScript for parsing and interpreting expressions.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

npm install --save expressionTS

Usage

const context = {
  x: 10,
  foo: { bar: 6 },
  double: (value: number) => value * 2
};
const parser = new Parser();
const result = parser.parse('double(x * foo.bar)');
console.log(result.expression(context)); // Logs 120.

Installing Dependencies

Installing the dependencies is done using a standard npm i.

Running the Tests

npm test

Building the project

npm run build

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

See also the list of contributors who participated in this project.

License

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

Package Sidebar

Install

npm i expressionts

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

51.3 kB

Total Files

57

Last publish

Collaborators

  • trwolfe13