Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/luisgbr1el/saldo-ru-ufc

Pacote do NPM que checa o saldo do cartão do Restaurante Universitário - UFC.
https://github.com/luisgbr1el/saldo-ru-ufc

node-js npm npm-package ru ufc ufc-crateus

Last synced: about 2 months ago
JSON representation

Pacote do NPM que checa o saldo do cartão do Restaurante Universitário - UFC.

Awesome Lists containing this project

README

        

# saldo-ru-ufc
Pacote que checa o saldo do cartão do Restaurante Universitário - UFC.

[![GitHub issues](https://img.shields.io/github/issues/luisgbr1el/saldo-ru-ufc?style=flat-square)](https://github.com/luisgbr1el/saldo-ru-ufc/issues)
[![GitHub forks](https://img.shields.io/github/forks/luisgbr1el/saldo-ru-ufc?style=flat-square)](https://github.com/luisgbr1el/saldo-ru-ufc/network)
[![GitHub stars](https://img.shields.io/github/stars/luisgbr1el/saldo-ru-ufc?style=flat-square)](https://github.com/luisgbr1el/saldo-ru-ufc/stargazers)
[![GitHub license](https://img.shields.io/github/license/luisgbr1el/saldo-ru-ufc?style=flat-square)](https://github.com/luisgbr1el/saldo-ru-ufc)

## Instalação (via NPM)
```git
npm install saldo-ru-ufc
```

## Exemplo de uso

```js
const saldoRU = require('saldo-ru-ufc');

saldoRU.saldo(NUMERO_CARTAO, NUMERO_MATRICULA).then(res => {
console.log(res);
})
```

## Exemplo de resposta

```
{
nome: "MARIA EDUARDA SILVA",
creditos: 13,
ultimaOperacao: {
data: '19/09/2022 10:23:33',
tipo: 'Compra de Créditos',
detalhes: 'Qtd. Créditos: 30 Qtd. Antes: 1 / Qtd. Depois: 31'
}
}
```