This is a fork of https://github.com/mercmobily/JS-Interpreter which itself is a wrapper around the original js-interpreter written by Neil Fraser. This repo / package attempts to keep these two repositories in sync.
An npm package for the Neil Fraser's JS-Interpreter
This repository is not a fork of the original repository anymore, instead it
clones it as a gitmodule
and packs it using webpack
to an npm package.
Additional to the original library, this package contains a cli version which can be used for testing the interpreter from terminal.
Changes are recorded on a best effort basis in CHANGELOG.md.
npm install js-interpreter
var Interpreter = require('js-interpreter');
var myInterpreter = new Interpreter('2 * 2');
import Interpreter from 'js-interpreter';
const myInterpreter = new Interpreter('2 * 2');
js-interpreter path/to/my/file.js
or
echo 'console.log(1 + 2)' | js-interpreter
- Create a new branch
- Update the submodules
git submodule foreach git pull origin master
- Check all the commits on the origin to identify the changes and update
CHANGELOG.md
- Bump the version according to semver rules
- After PR is merged:
- Run
npm install
to install the dependencies - Run
npm publish
to publish the package - Push the version as a tag to Github
- Run