nfe_decoder 0.1.3
nfe_decoder: ^0.1.3 copied to clipboard
A library that decodes NFe from the URL of the QRCode.
NFE Decoder #
NFE Decoder is a Dart library designed to scrape and extract information from Nota Fiscal Eletrônica (NFE) URLs, providing a structured way to access invoice details.
Features #
- Decode NFE URLs and retrieve detailed invoice data.
- Supports multiple state-specific NFE formats.
- Provides a clean API for integration into larger projects or use as a standalone library.
Installation #
To use the NFE Decoder in your project, add it to your pubspec.yaml
:
dependencies:
nfe_decoder: ^latest_version
Then, run:
pub get
Usage #
Here's a basic example of how to use the Decoder
class to extract information from an NFE URL:
import 'package:nfe_decoder/nfe_decoder.dart';
void main() async {
var decoder = Decoder('some_nfe_url');
var nfe = await decoder.scrapeNfe();
print(nfe);
}
For more detailed examples and advanced configurations, please refer to the documentation.
Available Decoders #
- ❌ Acre
- ❌ Alagoas
- ❌ Amapá
- ❌ Amazonas
- ❌ Bahia
- ❌ Ceará
- ❌ Distrito Federal
- ❌ Espírito Santo
- ❌ Goiás
- ❌ Maranhão
- ❌ Mato Grosso do Sul
- ❌ Mato Grosso
- ❌ Minas Gerais
- ❌ Paraná
- ❌ Paraíba
- ❌ Pará
- ❌ Pernambuco
- ❌ Piauí
- ❌ Rio Grande do Norte
- ✅ Rio Grande do Sul
- ❌ Rio de Janeiro
- ❌ Rondônia
- ❌ Roraima
- ❌ Santa Catarina
- ❌ Sergipe
- ❌ São Paulo
- ❌ Tocantins
Documentation #
Detailed documentation can be found here.
Contributing #
- Fork the repository.
- Create your feature branch (
git checkout -b feature/fooBar
). - Commit your changes (
git commit -am 'Add some fooBar'
). - Push to the branch (
git push origin feature/fooBar
). - Create a new pull request.
License #
This project is licensed under the MIT License. See the LICENSE file for details.