npm.io
1.5.1 • Published 1 week ago

bare-node-runtime

Licence
Apache-2.0
Version
1.5.1
Deps
39
Size
23 kB
Vulns
0
Weekly
0
Stars
5

bare-node-runtime

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

npm i bare-node-runtime

Usage

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