6.0.0 • Published 5 months ago

js-interpreter v6.0.0

Weekly downloads
1,882
License
Apache-2.0
Repository
github
Last release
5 months ago

JS Interpreter

Note: This is NOT an official package from Neil Fraser or Google, it is just a way to publish the package on NPM with some effort to comply with semver standards, I am not the owner of the original source-code of JS Interpreter.

An npm package for the Neil Fraser's JS-Interpreter

For license and pretty much any other information (except for the NPM package itself) refer to the original repo

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.

Installation

npm install js-interpreter

or

yarn add js-interpreter

Usage

Using require

var Interpreter = require('js-interpreter');
var myInterpreter = new Interpreter('2 * 2');

Using ES6 import

import Interpreter from 'js-interpreter';
const myInterpreter = new Interpreter('2 * 2');

Using command line interface

js-interpreter path/to/my/file.js

or

echo 'console.log(1 + 2)' | js-interpreter 

Updating the submodules

Initialization

After the first time cloning this repository you would need to pull the original-repo from GitHub using the following command:

git submodule update --init --recursive

Updating the submodule

If you've already initialized the repository and you want to fetch the latest changes use the following command:

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 yarn install to install the dependencies
    • Run yarn publish to publish the package
    • Push the version as a tag to Github
6.0.0

5 months ago

5.2.1

9 months ago

5.2.0

9 months ago

5.1.2

1 year ago

5.1.1

1 year ago

5.1.0

2 years ago

5.0.0

2 years ago

4.0.0

2 years ago

3.0.1

3 years ago

3.0.0

3 years ago

2.3.1

4 years ago

2.3.0

4 years ago

2.2.0

5 years ago

2.1.0

5 years ago

2.0.0

5 years ago

2.0.0-beta.4

5 years ago

2.0.0-beta.3

5 years ago

2.0.0-beta.2

5 years ago

2.0.0-beta.1

5 years ago

2.0.0-beta.0

5 years ago

1.4.6

8 years ago

1.4.5

8 years ago

1.4.4

8 years ago

1.4.3

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.4.0-alpha.5

8 years ago

1.4.0-alpha.4

8 years ago

1.4.0-alpha.3

8 years ago

1.4.0-alpha.2

8 years ago

1.4.0-alpha.1

8 years ago

1.4.0-alpha.0

8 years ago

1.3.0

8 years ago

1.3.0-alpha.3

8 years ago

1.3.0-alpha.2

8 years ago

1.3.0-alpha.1

8 years ago

1.2.0-alpha.4

8 years ago

1.2.0-alpha.3

8 years ago

1.2.0-alpha.2

8 years ago

1.2.0-alpha.1

8 years ago

1.2.0-alpha

8 years ago

1.2.0

8 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago