
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@justgage/reason-cookie
Advanced tools
a simple way to use cross-browser cookies that contain JSON.
a simple way to use cross-browser cookies that contain JSON.
Note this wrapps js-cookie
These are just some simple bindings to the library it wraps. I've used it on some side projects but it should be reasonably good. The Underlying library is pretty battle tested and can even work in older browsers.
npm install --save @justgage/reason-cookie
Then in your bsconfig.json
.
"bs-dependencies": ["@justgage/reason-cookie"],
open JustgageReasonCookie;
Cookie.getAsString("hello") /* None */
Cookie.setString("hello", "test");
Cookie.getAsString("hello") /* Some("test") */
open JustgageReasonCookie;
let obj = Js.Dict.empty();
Js.Dict.set(obj, "a", Js.Json.number(2.));
let obj = Js.Json.object_(obj);
Cookie.setJson("hello", obj);
let maybeCookie = Cookie.getAsJson("hello");
(see js-cookie for more uses)
open JustgageReasonCookie;
Cookie.setJsonConfig(
"hello",
obj,
Cookie.makeConfig(~path="", ~expires=2, ()),
);
Best thing somone can do is just use it and find any problems it has.
Absolutely! Just make an issue. Please note that I usually ask people to make the changes themselves.
FAQs
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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.