Skip to content

Latest commit

 

History

History

preset-mastodon

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

@kkna/preset-mastodon

Mastodon Preset for KKna.

npm version npm downloads license

Usage

NPM

install
# 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
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