
Product
Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.
@arcjet/runtime
Advanced tools
@arcjet/runtimeArcjet runtime detection.
This package attempts to discover and provide runtime keys as defined by the WinterCG.
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.
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.
This package is ESM only. Install with npm in Node.js:
npm install @arcjet/runtime
import { runtime } from "@arcjet/runtime";
console.log(runtime()); // => "bun" or "node" and such
This package exports the identifier
runtime.
There is no default export.
This package exports the TypeScript type Runtime.
RuntimeThis type represents the runtime environments that can be detected.
type Runtime = "workerd" | "deno" | "node" | "bun" | "edge-light" | "";
runtime()Detects which runtime environment your code is currently running in.
The detected runtime (string), or an empty string if the runtime could not
be determined.
Apache License, Version 2.0 © Arcjet Labs, Inc.
Derivative work based on std-env licensed under
MIT © Pooya Parsa.
Our work cherry picks only what we need.
FAQs
Arcjet runtime detection
The npm package @arcjet/runtime receives a total of 47,985 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.
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.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.

Research
More than 140 Mastra npm packages were compromised in a supply chain attack that used a typosquatted dependency to deliver a cross-platform infostealer during installation.

Research
/Security News
A new npm package tests AI malware scanners with prompt injection, safety-triggering comments, context flooding, and obfuscated JavaScript.