@projetoacbr/acbrlib-base-node 1.0.1 → 1.0.3

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.
Files changed (2) hide show
  1. package/README.md +96 -16
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,17 +1,97 @@
1
- ACBrLib Node Comum
2
- ----
3
-
4
-
5
- É uma Classe Base que expõe os métodos da **ACBrLibComum** e outros recursos (ACBrBuffer) (tal como existe no [Android](https://svn.code.sf.net/p/acbr/code/trunk2/Projetos/ACBrLib/Android/Comum/)) para que sejam reaproveitadas em classes Filhas (CEP,NFe,MDFe...)
6
-
7
- + LIB_Inicializar
8
- + LIB_Finalizar
9
- + LIB_UltimoRetorno
10
- + LIB_Nome
11
- + LIB_Versao
12
- + LIB_ConfigGravar
13
- + LIB_ConfigGravarValor
14
- + LIB_ConfigLer
15
- + LIB_ConfigLerValor
16
- + LIB_ConfigImportar
1
+ # @projetoacbr/acbrlib-base-node
2
+
3
+ [![License: LGPL-2.1](https://img.shields.io/badge/License-LGPL--2.1-green.svg)](https://www.gnu.org/licenses/old-licenses/lgpl-2.1.html)
4
+ [![Version](https://img.shields.io/badge/version-1.0.1-blue.svg)](https://www.npmjs.com/package/@projetoacbr/acbrlib-base-node)
5
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.5.4-blue.svg)](https://www.typescriptlang.org/)
6
+
7
+ ## 📋 Descrição
8
+
9
+ **ACBrLib Base Node** é o pacote fundamental que fornece funcionalidades básicas para todos os outros pacotes da família ACBrLib-Nodejs. Esta classe base implementa funcionalidades essenciais como inicialização, configuração e gerenciamento de memória.
10
+
11
+ ## 🏗️ Arquitetura
12
+
13
+ Esta é a classe base (`ACBrLibBaseMT`) que serve como fundamento para toda a hierarquia de pacotes ACBrLib-Nodejs.
14
+
15
+ ## 📦 Instalação
16
+
17
+ ```bash
18
+ npm install @projetoacbr/acbrlib-base-node
19
+ ```
20
+
21
+ ## 📖 Como Usar
22
+
23
+ ### Importação
24
+
25
+ ```javascript
26
+ const ACBrLibBaseMT = require('@projetoacbr/acbrlib-base-node/dist/src').default
27
+ ```
28
+
29
+ ### Uso Básico
30
+
31
+ ```javascript
32
+ // Esta classe é abstrata e não deve ser instanciada diretamente
33
+ // Use as classes específicas que herdam dela:
34
+ // - ACBrLibDFeComum
35
+ // - ACBrLibNFeMT
36
+ // - ACBrLibMDFeMT
37
+ // - ACBrLibNFSeMT
38
+ // - ACBrLibCepMT
39
+ ```
40
+
41
+ ## 🔧 Funcionalidades
42
+
43
+ ### Métodos Principais
44
+
45
+ - **Inicialização e Finalização**
46
+ - `inicializar(configPath, chaveCrypt)`
47
+ - `finalizar()`
48
+
49
+ - **Configuração**
50
+ - `configLer(arquivoConfig)`
51
+ - `configGravar(arquivoConfig)`
52
+ - `configLerValor(sessao, chave)`
53
+ - `configGravarValor(sessao, chave, valor)`
54
+ - `configImportar(arquivoConfig)`
55
+ - `configExportar()`
56
+
57
+ - **Informações do Sistema**
58
+ - `nome()`
59
+ - `versao()`
60
+ - `openSSLInfo()`
61
+ - `ultimoRetorno()`
62
+
63
+ - **Gerenciamento de Memória**
64
+ - `ACBrBuffer` - Classe para gerenciamento de buffers
65
+ - `TAMANHO_PADRAO` - Constante para tamanho padrão de buffer
66
+
67
+ ## 🔗 Dependências
68
+
69
+ - **koffi** - Para interface com bibliotecas nativas
70
+
71
+ ## 📚 Documentação
72
+
73
+ Para informações detalhadas sobre cada método, consulte a documentação JSDoc incluída no código fonte.
74
+
75
+ ## 🤝 Contribuição
76
+
77
+ 1. Fork o projeto
78
+ 2. Crie uma branch para sua feature
79
+ 3. Commit suas mudanças
80
+ 4. Push para a branch
81
+ 5. Abra um Pull Request
82
+
83
+ ## 📞 Suporte
84
+
85
+ - **Issues**: [GitHub Issues](https://github.com/Projeto-ACBr-Oficial/ACBrLib-Nodejs/issues)
86
+ - **Documentação ACBrLib**: [https://acbr.sourceforge.io/ACBrLib/BemVindo.html](https://acbr.sourceforge.io/ACBrLib/BemVindo.html)
87
+
88
+ ## 📄 Licença
89
+
90
+ LGPL-2.1 License - veja o arquivo [LICENSE](../LICENSE) para detalhes.
91
+
92
+ ---
93
+
94
+ **ACBrLib Base Node** - Classe base fundamental para ACBrLib-Nodejs
95
+ **Versão**: 1.0.1
96
+ **Desenvolvido por**: [Projeto ACBr](https://www.projetoacbr.com.br/)
17
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projetoacbr/acbrlib-base-node",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -17,7 +17,7 @@
17
17
  "url": "git+https://github.com/Projeto-ACBr-Oficial/ACBrLib-Nodejs.git"
18
18
  },
19
19
  "author": "",
20
- "license": "ISC",
20
+ "license": "LGPL-2.1",
21
21
  "bugs": {
22
22
  "url": "https://github.com/Projeto-ACBr-Oficial/ACBrLib-Nodejs/issues"
23
23
  },