Skip to content

ivgtr/aikatsu-cli

Repository files navigation

aikatsu-cli

アイカツ!格言を再生します


CI Test Publish to npm

📌✨ inspire: https://github.com/akameco/sana-voice

Usages

CLI

$ npm install --global aikatsu-cli
$ aikatsu --help
    Usage
      $ aikatsu [query]

    Examples
      $ aikatsu

      $ aikatsu 100

      $ aikatsu 一体感 --title
      30 ライブは一体感!

      $ aikatsu --link
      http://odayaka.work/152%E3%82%A2%E3%82%A4%E3%82%AB%E3%83%84%EF%BC%81%E3%81%AF%E3%81%A4%E3%81%A5%E3%81%8F%EF%BC%81%EF%BC%81.mp3

Packages

$ npm install aikatsu-cli
import { aikatsu } from "aikatsu-cli";

const randomKakugen = await aikatsu();
console.log(randomKakugen);
// => { id:100, title:'ゴールはスタート!', link:'~' }

const queryKakugen = await aikatsu("一体感");
console.log(queryKakugen);
// => { id:30, title:'ライブは一体感!', link:'~' }

API

aikatsu(query?:string) => Promise<string>

License

MIT ©ivgtr

Github Follow MIT License Donate