This is an internal utility to help us figure out what platform we are running on.
It’s a fork of unjs/std-env.
We chose to fork so that we can cut away functionality that we do not use
and keep our dependency tree as light as possible.
We only need the runtime detection.
When should I use this?
You should not use this but use unjs/std-env or one of the
alternatives instead.
This package matches our current needs which are likely different from yours.
Install
This package is ESM only.
Install with npm in Node.js:
npm install @arcjet/runtime
Use
import { runtime } from"@arcjet/runtime";
console.log(runtime()); // => "bun" or "node" and such
API
This package exports the identifier
runtime.
There is no default export.
The npm package @arcjet/runtime receives a total of 73,677 weekly downloads. As such, @arcjet/runtime popularity was classified as popular.
We found that @arcjet/runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 2 open source maintainers collaborating on the project.
Package last updated on 30 Jun 2026
Did you know?
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.