README
To publish new version to NPM:
- Create user on NPM site if you don't already have one. Then login
npm login
- Have someone add you to the firstfleet NPM org
- Increment version in package.json
- Publish it!
npm publish --access public
How to use in node project:
- Install to your project
npm install -s @firstfleet/ffslack
- Require in your controller
const slack = require('@firstfleet/ffslack')
- Example call to post to slack:
slack.PostToSlack("Your app name", "Error message", <slack channel name or ID>, "userID: " & req.param.user;
- set SlackPosterURL environment variable to https://api.firstfleetinc.com/myportal/utility/slack/postToSlack
*The Slack channel names and IDs are mapped in IntegrationSupport.dbo.AppErrorTypes