@kkna/preset-mastodon
v0.0.4
Published
Mastodon Preset for [KKna](https://github.com/importantimport/kkna).
Downloads
1
Readme
@kkna/preset-mastodon
Mastodon Preset for KKna.
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