This is a quick start for simply posting to Mastodon using the NPM module MastoJs (v6.0.1) with the lastest Deno (v1.35.3). There's nothing really to this, you can mostly copy the MastoJs docs but skypack was the only CDN I could get working for the import.
- Create an application under your Mastodon account settings and copy the access token.
- Create your deno.json with the import for mastojs
- Create your app like the post.ts, make sure to update the server and access token.
- Run with
deno run -A post.ts