Alex on Nostr: Thousands of hours have been wasted on bloated JSON logging frameworks in JavaScript. ...
Thousands of hours have been wasted on bloated JSON logging frameworks in JavaScript. Yet this is all that's needed. You just define the type of your logs, and then wrap `console.log` with the type.
Published at
2025-01-28 03:38:31Event JSON
{
"id": "ba35ae0b2eff9c1a9305eb123b991bf5b5b4cb76494d25a42ca166e6228b43fb",
"pubkey": "0461fcbecc4c3374439932d6b8f11269ccdb7cc973ad7a50ae362db135a474dd",
"created_at": 1738035511,
"kind": 1,
"tags": [
[
"imeta",
"url https://image.nostr.build/bba1380a90aa68dde60486940dbcff99ceba90dc18d6bbfbe14521b9a7227b7d.png",
"m image/png",
"x 009cbfa299b9d3a0988687d49cf9b94075f8a62b7236b1691aae0351c10dc84c",
"ox bba1380a90aa68dde60486940dbcff99ceba90dc18d6bbfbe14521b9a7227b7d",
"size 16589",
"dim 668x259",
"blurhash L055Uw-=Mxx^%Nf9WFjc00Inx]ac"
]
],
"content": "Thousands of hours have been wasted on bloated JSON logging frameworks in JavaScript. Yet this is all that's needed. You just define the type of your logs, and then wrap `console.log` with the type.\n\nhttps://image.nostr.build/bba1380a90aa68dde60486940dbcff99ceba90dc18d6bbfbe14521b9a7227b7d.png",
"sig": "3bd6e33f902be647258978066490cd11bbea501389c887a0c7bf69c7768aaf9f0d40269ce375bcdb91ea9d0cfab25f63fcc7a5db148f9ffe4d96869546384668"
}