New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

js-interpreter

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-interpreter

NPM package for https://github.com/NeilFraser/JS-Interpreter

  • 3.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.8K
increased by9.37%
Maintainers
1
Weekly downloads
 
Created
Source

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 

Update

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

FAQs

Package last updated on 23 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc