Socket
Book a DemoInstallSign in
Socket

runkit-plus-ultra

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

runkit-plus-ultra

Runkit tools for loading TypeScript, ES Modules and more. Makes testing Isomorphic code easyer, lets you use unstable features and import modules from git.

latest
Source
npmnpm
Version
0.11.5
Version published
Maintainers
1
Created
Source

Runkit Plus Ultra

Run ESM, full featured CJS and even TS in Runkit and stick it to the man.

Todo: Add ability to run code in browser window, worker and service worker.

RunKit Usage

Usage:

const OmniLoader = require('runkit-plus-ultra')

const SCRIPT_SPECS = [
{ // ES Module
    path: '1.mjs', 
    code: `
  import cowsay from "cowsay"
  console.log(cowsay.say("I'm a cow"))
`
},
{ // CommonerJS Module
  path: '2.cjs', 
  code: `
  var cowsay = require("cowsay")
  console.log(cowsay.say("I don't say meow"))
`
}


const omniLoader = new OmniLoader({ scriptSpecs: SCRIPT_SPECS })
omniLoader.loadLatest('ansicolor')
omniLoader.saveCode()
omniLoader.runCode()

About runkit

  • The number in the node_modules directory is a number referring to the build date of the container that installed the package. Runkit is composed of many containers overlaid on eachother to achieve effictient update and installation behavior across all possible packages.
  • If you get the uptime of the current container, you'll get a valid link to the node_modules directory as the current container is included first in the list of overlays.

Keywords

runkit

FAQs

Package last updated on 17 Jul 2021

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