@kkna/core

0.0.3 • Public • Published

@kkna/core

npm version npm downloads license

The core engine of KKna without any presets.

Usage

process
import { process } from '@kkna/core'
import { mastodon } from '@kkna/preset-mastodon'

const result = await process({
  data: {
    mastodon: {
      // https://fosstodon.org/@importantimport/111211120931974745
      id: '111211120931974745',
      instance: 'https://fosstodon.org',
    }
  },
  presets: [mastodon],
})

/** @type {import('@kkna/core').ProcessResult} */
console.log(result)
definePreset
import { definePreset } from '@kkna/core'

export const myPreset = definePreset<{ myPreset: MyPresetOptions }>(async ({ myPreset }) => ({
  comments: { ...comments },
  reactions: { ...reactions },
}))

License

MIT

/@kkna/core/

    Package Sidebar

    Install

    npm i @kkna/core

    Weekly Downloads

    3

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    8.77 kB

    Total Files

    5

    Last publish

    Collaborators

    • kwaa