New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nuxt-healthcheck

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-healthcheck

Middreware for [Nuxt.js](https://nuxtjs.org/) that provides healthcheck.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

nuxt-healthcheck

Middreware for Nuxt.js that provides healthcheck.

Setup

Install with yarn:

yarn add nuxt-healthcheck

Install with npm:

npm install nuxt-healthcheck

Add nuxt-healthcheck module to nuxt.config.js

module.exports = {
  modules: [
    'nuxt-healthcheck',
  ]
}

Add additional options to healthcheck section of nuxt.config.js to override defaults

healthcheck: {
  path: '/ping',
  contentType: 'application/json',
  healthy: () => {
    return JSON.stringify({ result: 'pong' })
  }
}

Options

path

Default: '/healthcheck'

contentType

Default: 'text/plain'

healthy

Function that returns a response body.

Default: 'OK'

TODO

  • unit test

License

The npm is available as open source under the terms of the MIT License.

FAQs

Package last updated on 29 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc