Faz chamadas no MOL
npm install @xet/mol[![NPM version][npm-img]][npm]
[![Build Status][pipeline-img]][pipeline]
[![Coverage Status][coverage-img]][coverage]
[npm-img]: https://img.shields.io/npm/v/@xet/mol.svg
[npm]: https://www.npmjs.com/package/@xet/mol
[pipeline-img]: https://gitlab.textecnologia.io/modules/node/mol/badges/master/pipeline.svg
[pipeline]: https://gitlab.textecnologia.io/modules/node/mol/-/pipelines
[coverage-img]: https://gitlab.textecnologia.io/modules/node/mol/badges/master/coverage.svg
[coverage]: https://gitlab.textecnologia.io/modules/node/mol/-/graphs/master/charts
Faz chamadas no MOL.
```
$ npm i -S @xet/mol
`js
import {mol} from '@xet/mol'
const params = {
CodCorr: 8,
SenhaCorr:'e8d95a51f3af4a3b134bf6bb680a213a',
AnoFabricacao: 2017,
Descricao: 'CIVIC EXL'
}
const r = await mol('Consulta_Veiculo', params, {
wsdl: 'https://lag.den/wsdl',
senha: '98364bf428a9e2e759d38c8123e12ea1'
})
/*
{
"veiculos": {
"veiculo": {
"descricao": "CIVIC EXL 2.0 FLEX 4P AT",
"fabricante": "HONDA",
"fipe": "014090-2"
}
}
}
// */
``
MIT © Thiago Lagden