slack-lambda-reporter

simple aws-lambda slack reporter

Usage no npm install needed!

<script type="module">
  import slackLambdaReporter from 'https://cdn.skypack.dev/slack-lambda-reporter';
</script>

README

slack-lambda-reporter

Simple logger for Slack, Made with aws-lambda in mind but works with any Node.js

Install:

npm i slack-lambda-reporter --save

Usage:

const logger = require('slack-lambda-reporter')({
  key: process.env.slack,
  channel: '#error',
  username: 'Voldemort'
})

// simple message
logger.log('Harry Potter is dead!')

// with data
logger.log('Avada Kedavra!', {dobi:'free elf'})