This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ErrorStackParser = require('error-stack-parser') | |
const Slack = require('slack-node') | |
const config = require('../config') | |
const packageJson = require('../../package.json') | |
const slack = new Slack() | |
slack.setWebhook(config.slackHookUrl) | |
module.exports = (err, req, res, next) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const options = { | |
stats: 'my_app.node_api', | |
response_code: true, | |
tags: ['my_app:node_api'] | |
} | |
app.use(require('connect-datadog')(options)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const npmCheck = require('npm-check') | |
const states = [ | |
{ | |
title: '🤔 Major update available', | |
filter: item => item.bump === 'major', | |
text: item => `${item.moduleName}: ${item.installed} → ${item.latest}`, | |
color: 'danger' | |
}, | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Circos, { Heatmap, Line } from 'react-circos' | |
const MyCircos = () => ( | |
<Circos> | |
<Heatmap data={heatmapData} /> | |
<Line data={lineData} /> | |
</Circos> | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Response, NextFunction} from 'express' | |
interface SomeRequest { | |
body: { | |
data: number[] | |
} | |
} | |
const someRouteHandler = (req: SomeRequest, res: Response, next: NextFunction) => { | |
OlderNewer