Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nasne-checker with all npm packages installed. Try it out:

var nasneChecker = require("nasne-checker")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nasne-checker v1.2.1

A tool to check resavation on nasne and post to slack.

nasne-checker

npm version

A tool to check resavation on nasne and post to slack.

Install

$ npm i nasne-checker -g

Usage

Usage: nasne-checker [options]

Options:

  -h, --help             output usage information
  -V, --version          output the version number
  --nasne <host>         Nasne host (required)
  --slack <url>          Slack webhook url (required)
  --cron <format>        Cron format (optional)
  --timezone <timezone>  When using cron option (Default is "Asia/Tokyo")

Example:

$ nasne-checker \
  --nasne 192.168.10.10 \
  --slack https://hooks.slack.com/services/XXX/XXX/XXXXX \
  --cron "00 20 * * 1,3,5"

Changelog

  • 1.0.0: First release.
  • 1.1.0: Support the case the reservation does not exist.
  • 1.1.1: Remove nasne module.
  • 1.1.2: Fix the message.
  • 1.1.3: Fix interval option bug.
  • 1.2.0: Add cron option and remove interval option.
  • 1.2.1: Fix a bug that is executed first once when the cron option is enabled.

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free