
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
boleto-bancoob-sicoob
Advanced tools
boleto-bancoob-sicoob baseado no sistema BoletoPHP
npm install boleto-bancoob-sicoob --save
##Configuração
var boletoArgs = {
boletoTaxa: 0.00, // Taxa bancária do boleto
boletoValor: 1.00, //Valor a ser cobrado no Boleto
boletoNumero: 2, // Deve informar um numero sequencial a ser passada a função abaixo, Até 6 dígitos
boletoEmissao: '09/10/2015', // Data de emissão do Boleto no formato DD/MM/AAAA
boletoVencimento: '09/10/2015', // Data de emissão do Boleto no formato DD/MM/AAAA
sacadoNome: 'Luiz Amorim - 012.345.678-90',
sacadoEndereco: 'Rua José das Coves, 3435 - Centro',
sacadoEnderecoComplemento: 'Campão / MS - CEP: 79.021-000',
documentoInternoNumero: 12, // Num do pedido ou do documento
documentoInternoQuantidade: 1,
documentoInternoValorUnitario: 1.00
};
var configArgs = {
convenio: '56235', //Número do convênio indicado
contaSemDV: '4593', // Num da conta, sem digito
agenciaSemDV: '3087', // Num da agencia, sem digito
cedenteNome: 'Empre Joaquina das Coves',
cedenteCpfCnpj: '85.835.216/0001-20',
cedenteEndereco: 'Rua João Pedro das Coves, 01 - Sl 106, Centro',
cedenteCidadeUF: 'Campão / SC - CEP: 88123-000',
cedenteIdentificacao: 'NomeSistemaAqui - Cobrando com boleto.',
// INFORMACOES PARA O CLIENTE
demonstrativo1: 'Pagamento de dívida na Loja BLÁ BLÁ BLÁ',
demonstrativo2: 'Mensalidade referente a BLÁ BLÁ BLÁ',
demonstrativo3: 'BoletoPhp - http://www.boletophp.com.br',
// INSTRUÇÕES PARA O CAIXA
instrucoes1: '1º - Sr. Caixa, não receber após o vencimento.',
instrucoes2: '2º - Este boleto é inválido após vencimento.',
instrucoes3: '3º - Em caso de dúvidas entre em contato conosco: xxxxx@xxxxx.com',
instrucoes4: ' Emitido por um sistema da informação.'
};
var fs = require('fs');
var boletoSicoob = require('boleto-bancoob-sicoob');
return boletoSicoob.gerarHTML(boletoArgs, configArgs).then(function(boletoHTML) {
var boletoPath = './boletoGerado.html';
fs.writeFileSync(boletoPath, boletoHTML);
}).catch(function(err) {
console.log(err);
});
var boletoSicoob = require('boleto-bancoob-sicoob');
var pdfOptions = { format: 'A4', orientation: 'portrait' };
return boletoSicoob.gerarPDF(boletoArgs, configArgs, pdfOptions).then(function(pdfObj) {
//pdfObj.toFile('./boletoGerado.pdf', function(err, res))
//pdfObj.toStream(function(err, stream){
//pdfObj.toBuffer(function(err, buffer){
pdfObj.toFile('./boletoGerado.pdf', function(err, res)) {
if (err) throw new Error(err);
console.log(res.filename);
};
}).catch(function(err) {
console.log(err);
});
FAQs
Boleto Bancoob/Sicoob em NodeJS
The npm package boleto-bancoob-sicoob receives a total of 4 weekly downloads. As such, boleto-bancoob-sicoob popularity was classified as not popular.
We found that boleto-bancoob-sicoob demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.