New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

rhinoify

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rhinoify

Browserify plugin to (attempt) to support the java Rhino / Nashorn engines

latest
Source
npmnpm
Version
0.3.3
Version published
Maintainers
1
Created
Source

rhinoify

This project is no longer maintained

Browserify transform to (attempt) to support the java Rhino / Nashorn engines

This doesn't guarantee compatibility with Rhino, but might give you a better chance!

What it does

  • It replaces any future reserved keywords (as described in Ecma-262, section 7.5.3) with string literals
  • It replaces the 'global' identifier with a function that returns Rhino's global object

Note: The work done by this transform may be undone by uglifiers. Try to make it the last transform in the list.

Executing directly

You don't have to use browserify if you don't want to, just use

var rhinoify = require( 'rhinoify' );
var mycode = "var g = 3;";
rhinoify.exec( mycode, function( err, transformedCode ) {
	// transformedCode now contains your new code
} );

Using with browserify

browserify main.js -t rhinoify -o bundle.js

or

browserify main.js -t rhinoify --standalone test -o bundle.js

Keywords

browserify-plugin

FAQs

Package last updated on 06 Sep 2019

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