
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/headers
Advanced tools
@arcjet/headersArcjet extension of the Headers class.
This is an internal utility to help us deal with Headers.
This exists to prevent the cookie header from being set and non-string values
from being set.
You should not use this but use Headers or plain objects 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/headers
import { ArcjetHeaders } from "@arcjet/headers";
const headers = new ArcjetHeaders({ abc: "123" });
console.log(headers.get("abc")); // => "123"
This package exports the identifier
ArcjetHeaders.
The default export is ArcjetHeaders.
This package exports no TypeScript types.
new ArcjetHeaders([init])Creates a new ArcjetHeaders instance. We use this internally to prevent
the cookie header from being set and to ensure only string values are used.
init (Headers | Array<[string, string]> | Record<string, Array<string> | string | undefined>, optional)
— initial headers to setAn ArcjetHeaders instance that extends the standard Headers class.
FAQs
Arcjet extension of the Headers class
The npm package @arcjet/headers receives a total of 35,468 weekly downloads. As such, @arcjet/headers popularity was classified as popular.
We found that @arcjet/headers 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.