@tukiyomi/plugin-sdk
    TypeScript icon, indicating that this package has built-in type declarations

    0.1.4 • Public • Published

    TukiYomi Plugin SDK

    A SDK for TukiYomi Browser plugins, yet another Scalable KanColle Browser, written in Typescript, powered by Electron and Vue.

    WIP

    Undocumented

    You may want to see some WIP core plugins, like the Recorder plugin.

    Example

    import {
      Plugin,
      on,
      getConfig,
      NetworkEvent
    } from '@tukiyomi/plugin-sdk'
    
    @Plugin({
      // default configs
      default: {
        demo: true
      }
    })
    export class MyPlugin {
      @start
      onStart () {
        const isDemo = getConfig('demo') // true
      }
    
      @on('network')
      @on('kcsapi')
      onNetwork (evt: NetworkEvent) {
        console.log(evt)
      }
    
      @stop
      onStop () {
        console.log('Bye')
      }
    }

    Install

    npm i @tukiyomi/plugin-sdk

    DownloadsWeekly Downloads

    8

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    10.1 kB

    Total Files

    12

    Last publish

    Collaborators

    • momocow