Socket
Socket
Sign inDemoInstall

nfe2stalk

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nfe2stalk

Um jeito simples de receber as novidades da Sefaz NF-e


Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Size Limit example

Um jeito simples de receber as novidades da Sefaz NF-e

Size Limit example

Como usar

Precisamos configurar apenas o tempo que a lib vai consultar a Sefaz e se queremos receber uma mensagem mesmo quando não tiver nenhuma informação nova.

const nfe2stalk = require('nfe2stalk')

let options = {
  every: '10',
  fullNotify: true
}

nfe2stalk.monitor.iniciar(options)

nfe2stalk.monitor.monitorar.on('alerta', (alerta) => {
  console.log('Notificação da sefaz:')
  console.log(alerta)
  console.log('------------------------------------')
})

Resultado

Notificação da sefaz:
{ numero: '490',
  titulo: '22/12/2017 - ATENÇÃO: Comunicamos que a aplicação das validações previstas na NT 2017.001 (GTIN) ocorrerá dentro de janeiro/2017',
  url: 'http://www.nfe.fazenda.gov.br/portal/informe.aspx?ehCTG=false#490' }
------------------------------------
Notificação da sefaz:
false
------------------------------------

Keywords

FAQs

Package last updated on 04 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc