alt-conciliacao-bancaria

$ npm i --save alt-conciliacao-bancaria

Usage no npm install needed!

<script type="module">
  import altConciliacaoBancaria from 'https://cdn.skypack.dev/alt-conciliacao-bancaria';
</script>

README

alt-conciliacao-bancaria

Build Status

Install

$ npm i --save alt-conciliacao-bancaria

Métodos

parseOfx

import {parseOfx} from 'alt-conciliacao-bancaria'

// parseOfx(arquivo:File, reader:OfxFileReader, opcoes?:OfxOpcoesParse):Promise<Ofx>
parseOfx(arquivo, new FileReader())
    .then((ofx:Ofx) => {

    })

const opcoesParse = {
    conta: new Conta(), // Será adicionada no lançamento base e nos filhos também
    encode: 'windows-1252', // Default é UTF-8
}

parseOfx(arquivo, new FileReader(), opcoesParse)
    .then((ofx:Ofx) => {

    })

ofxToJSON

import {ofxToJSON} from 'alt-conciliacao-bancaria'

// ofxToJSON(arquivo:File, reader:OfxFileReader, opcoes?:OfxOpcoesToJSON):Promise<any>
ofxToJSON(arquivo, new FileReader())
    .then((ofxJson:any) => {

    })

const opcoes = {
    encode: 'windows-1252', // Default é UTF-8
}

ofxToJSON(arquivo, new FileReader(), opcoes)
    .then((ofxJson:any) => {

    })

Desenvolvimento

$ npm i
$ npm t
$ npm build

License

MIT