npmaudit2slack

Post results from npm audit to a Slack channel

Usage no npm install needed!

<script type="module">
  import npmaudit2slack from 'https://cdn.skypack.dev/npmaudit2slack';
</script>

README

npmaudit2slack

Runs npm audit in the current working directory and posts the results to Slack.

Build Status Coverage Status dependencies Status Greenkeeper badge Maintainability node code style License Status

Install

npm install -g npmaudit2slack

Usage

npmaudit2slack --help

  Usage: npmaudit2slack [options] <webhookuri>

  Options:
    -v, --version              output the version number
    -u, --username <username>  username to be displayed in Slack, defaults to channel settings
    -e, --emoji <emoji>        emoji to be displayed in Slack, e.g., ":ghost:", defaults to channel settings
    -b, --branch <branch>      branch name to be displayed in Slack
    -r, --reluctant            do not send any message if there are no vulnerabilities
    -h, --help                 output usage information