Manuel Matuzović on Nostr: If you want to use json5 in npub1z9mgj…jrz2z, you can add support using ...
Published at
2024-05-30 08:55:57Event JSON
{
"id": "608837d38757e547ef62bfadf57300e524a9dbb0e40ba1057fa9d55b644589c6",
"pubkey": "e1ca52b8e11356a8e151f4b791fcd0437c88940bac97469e9258f17a69800c57",
"created_at": 1717059357,
"kind": 1,
"tags": [
[
"p",
"11768977929c897710cee321ec092f62220b1f53dbaa0894e7b70c84b52238d3",
"wss://relay.mostr.pub"
],
[
"p",
"d2de55a66d020f7ee1b419123ecc712cdbb9c2ee6baaaf0a894a87131b8d8c23",
"wss://relay.mostr.pub"
],
[
"proxy",
"https://front-end.social/users/matuzo/statuses/112529202069343039",
"activitypub"
]
],
"content": "If you want to use json5 in nostr:npub1z9mgjaujnjyhwyxwuvs7czf0vg3qk86nmw4q3988kuxgfdfz8rfs9jrz2z, you can add support using `addDataExtension()`.\n\n```\nconst json5 = require(\"json5\");\n\nmodule.exports = function(eleventyConfig) {\n eleventyConfig.addDataExtension(\"json5\", contents =\u003e json5.parse(contents));\n…\n}\n```",
"sig": "93a8bd369d706d586a75741950612ffc7ed406ea6769bf75c5353c51d14734f29c3d85a5fc15c2aaf39795d1515f263fbd8cdba613e644361e73eb56aa853633"
}