Socket
Book a DemoInstallSign in
Socket

bare-realm

Package Overview
Dependencies
Maintainers
2
Versions
10
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.0
Version published
Weekly downloads
1.4K
37.85%
Maintainers
2
Weekly downloads
 
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 19 Dec 2025

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