qqlib-node-boleto 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,24 +1,18 @@
|
|
|
1
|
-
node-boleto
|
|
1
|
+
qqlib-node-boleto
|
|
2
2
|
=============
|
|
3
3
|
|
|
4
|
-
[](http://standardjs.com/)
|
|
5
|
-
[](https://sonarcloud.io/dashboard?id=node-boleto)
|
|
6
|
-
[](https://sonarcloud.io/dashboard?id=node-boleto)
|
|
7
|
-
[](https://sonarcloud.io/dashboard?id=node-boleto)
|
|
8
|
-
[](https://sonarcloud.io/dashboard?id=node-boleto)
|
|
9
|
-
[](https://sonarcloud.io/dashboard?id=node-boleto)
|
|
10
4
|
|
|
11
5
|
Geração de boleto bancário em Node.js. Os algoritmos de geração da linha digitável e do código de barras foram inspirados no [boletophp](https://github.com/BielSystems/boletophp).
|
|
12
6
|
|
|
13
7
|
## Bancos suportados
|
|
14
8
|
|
|
15
|
-
- Santander
|
|
16
|
-
- Bradesco
|
|
17
|
-
|
|
9
|
+
- Santander
|
|
10
|
+
- Bradesco
|
|
11
|
+
- banco do brasil
|
|
18
12
|
## Instalação
|
|
19
13
|
|
|
20
14
|
```
|
|
21
|
-
npm install node-boleto
|
|
15
|
+
npm install qqlib-node-boleto
|
|
22
16
|
```
|
|
23
17
|
|
|
24
18
|
## Exemplo de uso
|
|
@@ -26,7 +20,7 @@ npm install node-boleto
|
|
|
26
20
|
Emitindo um boleto:
|
|
27
21
|
|
|
28
22
|
```javascript
|
|
29
|
-
var Boleto = require('node-boleto').Boleto;
|
|
23
|
+
var Boleto = require('qqlib-node-boleto').Boleto;
|
|
30
24
|
|
|
31
25
|
var boleto = new Boleto({
|
|
32
26
|
'banco': "santander", // nome do banco dentro da pasta 'banks'
|
|
@@ -52,7 +46,7 @@ boleto.renderHTML(function(html){
|
|
|
52
46
|
Parseando o arquivo-retorno EDI do banco:
|
|
53
47
|
|
|
54
48
|
```javascript
|
|
55
|
-
var ediParser = require('node-boleto').EdiParser,
|
|
49
|
+
var ediParser = require('qqlib-node-boleto').EdiParser,
|
|
56
50
|
fs = require('fs');
|
|
57
51
|
|
|
58
52
|
var ediFileContent = fs.readFileSync("arquivo.txt").toString();
|