
Security News
OpenClaw Skill Marketplace Emerges as Active Malware Vector
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.
Progressive JSON
danSON is a progressive JSON serializer and deserializer that can serialize and deserialize arbitrary objects into JSON.
Promises, AsyncIterables, and ReadableStreamsBigIntDateHeadersMap-0, Infinity, -Infinity)RegExpSetInt8Array, Uint8Array, etc.)undefinedURLURLSearchParamsnpm install danson
import { Temporal } from "@js-temporal/polyfill";
import { parseSync, stringifySync } from "danson";
const source = {
instant: Temporal.Now.instant(),
};
const stringified = stringifySync(source, {
serializers: {
"Temporal.Instant": (value) => value.toJSON(),
},
space: 2,
});
/*
{
"json": {
"instant": {
"_": "$",
"type": "Temporal.Instant",
"value": "2025-06-13T15:24:51.30029128Z"
}
}
}
*/
const result = parseSync<typeof source>(stringified, {
deserializers: {
"Temporal.Instant": (value) => Temporal.Instant.from(value as string),
},
});
Promisesconst source = {
foo: "bar",
promise: (async () => {
await sleep(1000);
return "hello promise";
})(),
};
const stringified = stringifySync(source, {
space: 2,
});
for await (const chunk of stringified) {
console.log(chunk);
}
{
"json": {
"foo": "bar",
"promise": {
"_": "$", // informs the deserializer that this is a special type
"type": "Promise", // it is a Promise
"value": 1, // index of the Promise that will come later
},
},
}
[
1, // index of the Promise
0, // Promise succeeded (0 = success, 1 = failure)
{
"json": "hello promise"
}
]
AsyncIterablesconst source = {
asyncIterable: (async function* () {
yield "hello";
yield "world";
return "done";
})(),
};
const stringified = stringifySync(source, {
space: 2,
});
for await (const chunk of stringified) {
console.log(chunk);
}
{
"json": {
"foo": "bar",
"asyncIterable": {
"_": "$",
"type": "AsyncIterable",
"value": 0
}
}
}
[
0,
0,
{
"json": "world"
}
]
[
0, // index of the AsyncIterable
2,
{
"json": "done"
}
]
stringifySync(value: unknown, options?: StringifyOptions): stringSerializes a value into a JSON string.
parseSync<T>(value: string, options?: ParseOptions): TDeserializes a JSON string into a value.
serializeSync(value: unknown, options?: StringifyOptions): SerializeReturnSerializes a value into a JSON.stringify-compatible format.
deserializeSync<T>(value: SerializeReturn, options?: ParseOptions): TDeserializes from a SerializeReturn object into a value.
stringifyAsync(value: unknown, options?: StringifyOptions): AsyncIterable<string, void>Serializes a value into a stream of JSON strings asynchronously.
parseAsync<T>(value: AsyncIterable<string, void>, options?: ParseOptions): Promise<T>Deserializes a stream of JSON strings into a value asynchronously.
serializeAsync(value: unknown, options?: StringifyOptions): AsyncIterable<unknown, void>Serializes a value into a stream of intermediate objects asynchronously.
deserializeAsync<T>(value: AsyncIterable<unknown, void>, options?: ParseOptions): Promise<T>Deserializes a stream of intermediate objects into a value asynchronously.
The std
FAQs
Danson
The npm package danson receives a total of 2 weekly downloads. As such, danson popularity was classified as not popular.
We found that danson demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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.

Security News
Security researchers report widespread abuse of OpenClaw skills to deliver info-stealing malware, exposing a new supply chain risk as agent ecosystems scale.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.