# bare-node-runtime

> Compatibility layer for Node.js builtins and globals in Bare

Latest version **1.5.1** (published 2026-09-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install bare-node-runtime
pnpm add bare-node-runtime
yarn add bare-node-runtime
bun add bare-node-runtime
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.5.1 |
| Published | 2026-09-14 |
| First published | 2025-09-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 39 |
| Unpacked size | 23.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | Holepunch |
| Maintainers | mafintosh |

## Links

- npm: https://www.npmjs.com/package/bare-node-runtime
- Repository: https://github.com/holepunchto/bare-node-runtime
- Homepage: https://github.com/holepunchto/bare-node-runtime#readme
- Issues: https://github.com/holepunchto/bare-node-runtime/issues
- npm.io page: https://npm.io/package/bare-node-runtime

## Dependencies (39)

- [bare-fs](https://npm.io/package/bare-fs.md) ^4.2.3
- [bare-os](https://npm.io/package/bare-os.md) ^3.6.2
- [bare-v8](https://npm.io/package/bare-v8.md) ^1.0.1
- [bare-vm](https://npm.io/package/bare-vm.md) ^1.0.0
- [bare-ws](https://npm.io/package/bare-ws.md) ^3.0.0
- [bare-dns](https://npm.io/package/bare-dns.md) ^2.1.4
- [bare-net](https://npm.io/package/bare-net.md) ^2.0.2
- [bare-tls](https://npm.io/package/bare-tls.md) ^3.0.0
- [bare-tty](https://npm.io/package/bare-tty.md) ^5.0.3
- [bare-url](https://npm.io/package/bare-url.md) ^2.2.2
- [bare-path](https://npm.io/package/bare-path.md) ^3.0.0
- [bare-repl](https://npm.io/package/bare-repl.md) ^6.0.1
- [bare-zlib](https://npm.io/package/bare-zlib.md) ^1.3.1
- [bare-dgram](https://npm.io/package/bare-dgram.md) ^1.0.1
- [bare-fetch](https://npm.io/package/bare-fetch.md) ^3.0.0
- [bare-http1](https://npm.io/package/bare-http1.md) ^4.0.4
- [bare-https](https://npm.io/package/bare-https.md) ^3.0.0
- [bare-utils](https://npm.io/package/bare-utils.md) ^1.5.1
- [bare-assert](https://npm.io/package/bare-assert.md) ^1.1.0
- [bare-buffer](https://npm.io/package/bare-buffer.md) ^3.3.1
- [bare-crypto](https://npm.io/package/bare-crypto.md) ^1.11.2
- [bare-events](https://npm.io/package/bare-events.md) ^2.7.0
- [bare-module](https://npm.io/package/bare-module.md) ^6.1.2
- [bare-sqlite](https://npm.io/package/bare-sqlite.md) ^0.1.4
- [bare-stream](https://npm.io/package/bare-stream.md) ^2.7.0
- [bare-timers](https://npm.io/package/bare-timers.md) ^3.0.3
- [bare-worker](https://npm.io/package/bare-worker.md) ^4.0.0
- [bare-console](https://npm.io/package/bare-console.md) ^6.0.1
- [bare-process](https://npm.io/package/bare-process.md) ^4.2.1
- [bare-punycode](https://npm.io/package/bare-punycode.md) ^0.0.0
- [bare-readline](https://npm.io/package/bare-readline.md) ^1.1.0
- [bare-inspector](https://npm.io/package/bare-inspector.md) ^6.0.1
- [bare-subprocess](https://npm.io/package/bare-subprocess.md) ^6.0.0
- [bare-async-hooks](https://npm.io/package/bare-async-hooks.md) ^0.0.0
- [bare-performance](https://npm.io/package/bare-performance.md) ^2.0.0
- [bare-querystring](https://npm.io/package/bare-querystring.md) ^1.0.0
- [bare-string-decoder](https://npm.io/package/bare-string-decoder.md) ^1.0.0
- [bare-abort-controller](https://npm.io/package/bare-abort-controller.md) ^1.0.0
- [bare-diagnostics-channel](https://npm.io/package/bare-diagnostics-channel.md) ^1.1.0

## Recent versions

- 1.5.1 (latest) — 2026-09-14
- 1.5.0 — 2026-06-19
- 1.4.0 — 2026-05-26
- 1.3.1 — 2026-04-28
- 1.3.0 — 2026-04-28
- 1.2.0 — 2026-02-25
- 1.1.4 — 2025-10-23
- 1.1.3 — 2025-10-22
- 1.1.2 — 2025-10-22
- 1.1.1 — 2025-10-09
- 1.1.0 — 2025-10-03
- 1.0.4 — 2025-09-23
- 1.0.3 — 2025-09-17
- 1.0.2 — 2025-09-17
- 1.0.1 — 2025-09-17
- … 1 more at https://npm.io/package/bare-node-runtime/versions

## README

# bare-node-runtime

Compatibility layer for Node.js builtins and globals in Bare.

```
npm i bare-node-runtime
```

## Usage

```js
require('bare-node-runtime/global')

require('some-nodejs-package', {
  with: { imports: 'bare-node-runtime/imports' }
})
```

## Node.js compatibility target

`bare-node-runtime/global` sets `process.versions.node` to the current Node.js LTS release. Bare validates this value against the `engines.node` range of every package it resolves, so packages that require a supported Node.js version load without `UNSUPPORTED_ENGINE`. It does not imply full API parity with that release.

## License

Apache-2.0

---
_Source: https://npm.io/package/bare-node-runtime · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
