# cfdi-api

> Descargar xml del sat

Latest version **0.0.0** (published 2018-08-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install cfdi-api
pnpm add cfdi-api
yarn add cfdi-api
bun add cfdi-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2018-08-06 |
| First published | 2018-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 2 |
| Unpacked size | 7.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mauricio Martinez |
| Maintainers | nthings |
| Keywords | sat, cfdi, nodejs, javascript, descargar, facturas, xml |

## Links

- npm: https://www.npmjs.com/package/cfdi-api
- Repository: https://github.com/NTHINGs/cfdi-api
- Homepage: https://github.com/NTHINGs/cfdi-api#readme
- Issues: https://github.com/NTHINGs/cfdi-api/issues
- npm.io page: https://npm.io/package/cfdi-api

## Dependencies (2)

- [nightmare](https://npm.io/package/nightmare.md) ^3.0.1
- [nightmare-upload](https://npm.io/package/nightmare-upload.md) ^0.1.1

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 0.0.0 (latest) — 2018-08-06

## README

# satdwnld [![Build Status](https://travis-ci.org/NTHINGs/satdwnld.svg?branch=master)](https://travis-ci.org/NTHINGs/satdwnld)

> Descargar xml del sat

![Demo](https://raw.githubusercontent.com/NTHINGs/satdwnld/master/run.gif)

## Instalar

```
$ npm install satdwnld
```


## Uso

```js
const satdwnld = require('satdwnld');

// Regresa una promesa
satdwnld('rfc', 'contraseña', {
    inicio: new Date('May 1, 2018 00:00:00'),
    final: new Date('May 31, 2018 23:59:59')
}).then((facturas) => {
    console.log(facturas);
});
```


## API

### satdwnld(rfc, contraseña, [rango de fechas])

#### Rfc

Type: `string`

RFC que quieras consultar sus facturas.

#### Contraseña

Type: `string`

Contraseña del SAT (para iniciar sesión en el portal).

#### Rango de fechas

Type: `Object`

Objecto con la fecha inicial y final del rango que quieras consultar.

##### Inicio

Type: `Date`

##### Final

Type: `Date`

## TODO

- Facturas recibidas

## License

MIT © [](http://none)

---
_Source: https://npm.io/package/cfdi-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
