Neutron Polarization Manipulator

    nuxt-logsnag
    TypeScript icon, indicating that this package has built-in type declarations

    1.2.0 • Public • Published

    Nuxt LogSnag 📰

    npm version npm downloads Github Actions CI License

    LogSnag integration for Nuxt 3

    Features

    • Nuxt 3 ready
    • Easy integration
    • Handy composables
    • TypeScript support

    Setup

    yarn add nuxt-logsnag # yarn
    npm i nuxt-logsnag # npm

    Basic usage

    Firstly, you need to add nuxt-logsnag to your Nuxt config.

    // nuxt.config.js
    
    {
        modules: ["nuxt-logsnag"],
        logsnag: {
            token: "<YOUR_LOGSNAG_API_TOKEN>"
        }
    }

    Set your api token in the nuxt.config or as an environment variable using: LOGSNAG_API_TOKEN

    Then you can start using nuxt-logsnag in your setup function!

    <script setup>
    const { publish } = useLogSnag();
    
    onMounted(async () => {
      var event = {
        project: "Test",
        channel: "nuxttest",
        event: "Tested Module!",
        description: "Hey, I just tested the Nuxt3 LogSnag module!",
        icon: "🎉",
        notify: true,
      };
      await publish(event);
    });
    </script>

    nuxt-logsnag

    Development

    1. Clone this repository
    2. Install dependencies using yarn install or npm install
    3. Start development server using yarn dev or npm run dev

    License

    MIT License - 2022 Conner Luka Bachmann

    Install

    npm i nuxt-logsnag

    DownloadsWeekly Downloads

    4

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    8.07 kB

    Total Files

    13

    Last publish

    Collaborators

    • intevel