node-sped-nfe 1.0.0 → 1.0.1
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 +1 -22
- package/package.json +6 -2
package/README.md
CHANGED
@@ -38,31 +38,10 @@ Para garantir o funcionamento correto da biblioteca, certifique-se de que os seg
|
|
38
38
|
|
39
39
|
### 🔧 Ambiente
|
40
40
|
|
41
|
+
- **Windows**/**Linux**
|
41
42
|
- **Node.js** `v22.14.0` (versão testada e recomendada)
|
42
43
|
- **xmllint** `2.9.3` (utilizado para validação dos XMLs gerados)
|
43
44
|
|
44
|
-
### 🖥 Instalação do `xmllint`
|
45
|
-
|
46
|
-
#### 🔵 Windows
|
47
|
-
|
48
|
-
1. Baixe o pacote do libxml para Windows:
|
49
|
-
- [Download libxml2 para Windows (64bit)](http://xmlsoft.org/sources/win32/64bit/)
|
50
|
-
|
51
|
-
2. Extraia o conteúdo em um diretório acessível.
|
52
|
-
|
53
|
-
3. Declaração uma das opção:
|
54
|
-
( ) Declaração de variavel no sistema.
|
55
|
-
Adicione o caminho do executável (`xmllint.exe`) à variável de ambiente `PATH` do windows.
|
56
|
-
( ) Ao declarar Tools({..., xmllint: 'diretorio/bin/xmllint.exe'}, ...) no proprio codigo.
|
57
|
-
|
58
|
-
#### 🐧 Linux (Debian/Ubuntu)
|
59
|
-
|
60
|
-
Execute o comando abaixo para instalar via APT:
|
61
|
-
|
62
|
-
```bash
|
63
|
-
sudo apt -y install libxml2-utils
|
64
|
-
```
|
65
|
-
|
66
45
|
---
|
67
46
|
|
68
47
|
## 🚀 Começando
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "node-sped-nfe",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.1",
|
4
4
|
"main": "index.js",
|
5
5
|
"scripts": {
|
6
6
|
"teste": "set NODE_OPTIONS='--openssl-legacy-provider' && node testes/nfe.js"
|
@@ -15,5 +15,9 @@
|
|
15
15
|
"pem": "^1.14.8",
|
16
16
|
"tmp": "^0.2.3",
|
17
17
|
"xml-crypto": "^6.0.0"
|
18
|
+
},
|
19
|
+
"repository": {
|
20
|
+
"type": "git",
|
21
|
+
"url": "https://github.com/kalmonv/node-sped-nfe.git"
|
18
22
|
}
|
19
|
-
}
|
23
|
+
}
|