JSPM

  • Created
  • Published
  • Downloads 1518
  • Score
    100M100P100Q114099F
  • License MIT

Application insights plugin for nitro.

Package Exports

  • nitro-applicationinsights

Readme

nitro-applicationinsights

npm version npm downloads bundle Codecov

Application insight plugin for Nitro

Usage

Install package:

# npm
npm install nitro-applicationinsights

# yarn
yarn add nitro-applicationinsights

# pnpm
pnpm install nitro-applicationinsights

Import:

// ESM
import applicationInsightsPlugin from "nitro-applicationinsights";

// CommonJS
const applicationInsightsPlugin = require("nitro-applicationinsights");

usage

Add the module within your nitro.config.ts

export default defineNitroConfig({ 
    plugins: ['nitro-applicationinsights']
});

Et voilà ! You now have application insights node for Nitro

Development

  • Clone this repository
  • Install latest LTS version of Node.js
  • Enable Corepack using corepack enable
  • Install dependencies using pnpm install
  • Run interactive tests using pnpm dev

License

Made with 💛

Published under MIT License.