
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@stein197/cookie
Advanced tools
This tiny library provides a simple way for managing cookies in a browser.
npm install @stein197/cookie
import Cookie from "@stein197/cookie";
const cookie = new Cookie(document);
cookie.get("key"); // Return a value denoted by a key
cookie.get(); // Return all cookies
cookie.set("key", "value", {path: "/"}); // Set a single value
cookie.set({key: "value"}); // Set multiple values
cookie.has("key"); // Returns true if there is a value associated with the key
cookie.unset("key"); // Remove an entry by a key
cookie.clear(); // Remove all entries
cookie.parse("key=value"); // Parse cookie string
cookie.stringify({key: "value"}); // Stringify an object
// ...
Refer to the source code for the documentation, please
clean Deletes compiled filestest Runs unit testsbuild Builds the projectFAQs
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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.