Simon Willison on Nostr: Here's what I have so far: mkdir /tmp/site cd /tmp/site npx jsr add ...
Here's what I have so far:
mkdir /tmp/site
cd /tmp/site
npx jsr add @kwhinnery/yassify
echo 'import { yassify } from "@kwhinnery/yassify"; console.log(yassify("hi");' > index.js
... what's the next step? How do I run that code in a browser?
Published at
2024-03-02 19:03:27Event JSON
{
"id": "0817895dab399eac35dddbf893846993cbf75c47fe9897c975b96702751701d9",
"pubkey": "8b0be93ed69c30e9a68159fd384fd8308ce4bbf16c39e840e0803dcb6c08720e",
"created_at": 1709406207,
"kind": 1,
"tags": [
[
"e",
"f4da0017b03dc4a08e92f93660d0550981711baf4beaba957d0bcfcf3b79c1a2",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fedi.simonwillison.net/users/simon/statuses/112027645242320401",
"activitypub"
]
],
"content": "Here's what I have so far:\n\nmkdir /tmp/site\ncd /tmp/site\nnpx jsr add @kwhinnery/yassify\necho 'import { yassify } from \"@kwhinnery/yassify\"; console.log(yassify(\"hi\");' \u003e index.js\n\n... what's the next step? How do I run that code in a browser?",
"sig": "fdb409e8383c9e9675e4b544134a65ec78a6924ac976a9af8769ab95a4b0d2e3f5f79eb9e4496f51529d318b547a4542d0118b6cecf190398b6e1beddd1624aa"
}