bbcap-notify-error

1.0.32 • Public • Published

#Dependências

#Instalação

npm i bbcap-notify-error

#Exemplo

const Webhook = require('bbcap-notify-error')({url: '<URL_WEB_HOOK>'})
// Instance.<method>

##Enviar mensagem de texto

function methodName(req, res) {
    try{
    	...
    }catch(error) {
        Webhooks.notifyText(error, method, packageName) // method = nome da função
          .then(result => {...})
          .catch(error => {...})
     }
}

Readme

Keywords

none

Package Sidebar

Install

npm i bbcap-notify-error

Weekly Downloads

0

Version

1.0.32

License

ISC

Unpacked Size

7.31 kB

Total Files

4

Last publish

Collaborators

  • victorlessa