UNPKG

micro-dev

Version:

This command line interface provides a belt full of tools that make building microservices using [micro](https://github.com/vercel/micro) a breeze! It's only meant to be used in development, **not in production** (that's where [micro](https://github.com/v

10 lines (7 loc) 293 B
// Packages const {red, blue} = require('chalk'); module.exports = (message, errorCode) => { const repo = errorCode === 'watch-flags' ? 'micro-dev' : 'micro'; console.error(`${red('Error:')} ${message}`); console.error(`${blue('How to Fix It:')} https://err.sh/${repo}/${errorCode}`); };