Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

bare-realm

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bare-realm

Realm support for Bare

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
2
Created
Source

bare-realm

Realm support for Bare.

npm i bare-realm

Usage

const Realm = require('bare-realm')

const realm = new Realm()

realm.evaluate('globalThis.foo = 42')
// 42

typeof globalThis.foo
// undefined

API

const realm = new Realm()

realm.destroy()

const result = realm.evaluate(code[, options])

Options include:

{
  filename: '<anonymous>',
  offset: 0
}

License

Apache-2.0

FAQs

Package last updated on 17 Feb 2026

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