Skip to content

@kkna/preset-mastodon ​

Mastodon Preset for KKna.

npm versionnpm downloadslicense

Usage ​

NPM ​

install ​
sh
# npm
npm install @kkna/preset-mastodon

# yarn
yarn add @kkna/preset-mastodon

# pnpm
pnpm install @kkna/preset-mastodon

# bun
bun install @kkna/preset-mastodon
use ​
ts
import { provider } from '@kkna/context'
import { mastodon } from '@kkna/preset-mastodon'

const provide = provider(document.body, {
  initialValue: {
    presets: [
      /** @see {@link https://mastodon.social/@Mastodon/112343541328038890} */
      mastodon({
        id: '112343541328038890',
        instance: 'https://mastodon.social',
      }),
    ],
  },
})

provide.hostConnected()

License ​

MIT