🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

electrum-compiler

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrum-compiler

Run-time compiler for Electrum-enabled React components.

Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

electrum-compiler

Run-time compiler for Electrum-enabled React components.

The Compiler class

Transform JavaScript to ES2015

let compiler = new Compiler ();
let source = compiler.transform ('const greet = x => `Hello ${x}.`;')
// ES2015 compatible source

Build Electrum-enabled React component

let compiler = new Compiler ();
let output = compiler.build ('Foo', 'class extends React.Component { render() { return <div>Hi.</div>; } }');
// Component in output.component

FAQs

Package last updated on 21 Jan 2016

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