Here's how you could create custom error classes in Node.js using latest ES6 / ES2015 syntax.
I've tried to make it as lean and unobtrusive as possible.
errors/AppError.js
app.listen(process.env.PORT, () => { | |
cfonts.say('edb', { | |
font: 'block', | |
colors: ['white', 'gray'] | |
}) | |
cfonts.say(`Servidor EDB funcionando na porta: ${process.env.PORT}`, { | |
font: 'console', | |
colors: ['black'], | |
background: 'green' | |
}) |
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/gabriel/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
module.exports = { | |
content: ['**/*.pug'] | |
} |
f=matroska pix_fmt=bgra acodec=aac vcodec=ffv1 qscale=%quality ab=%audiobitrate+'k' |
#!/usr/bin/env node | |
console.log('Em todos esses anos nesta industria vital, é a primeira vez que isso acontece...') |
'use strict'
// IMPORTAR O AXIOS PARA FAZER A CHAMADA HTTP
import axios from 'axios'
// INÍCIO DA EXECUÇÃO
window.onload = async () => {
try {
// GET PARA A API