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

  • 1.4.0-alpha.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4K
decreased by-15.92%
Maintainers
1
Weekly downloads
 
Created
Source

js-interpreter

An npm package for the JS-Interpreter

Installation

npm install 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');

What's new

Full support of functions in nativeToPseudo:

Example:

interpreter.nativeToPseudo({
    log(...args) { console.log(...args) },
}))

Using command line interface

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

or

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

FAQs

Package last updated on 29 Mar 2017

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