New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

correios-ts

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

correios-ts

Biblioteca para cotação de frete e rastreamento de encomendas para os Correios

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

correios-ts

Biblioteca para cotação de frete e rastreamento de encomendas para os Correios

Features

  • Realizar cotação de Encomendas
  • Realizar rastreio de encomendas

Installing

Using npm:

$ npm install correios-ts

Example

Simular uma cotação de frete

import { CotacaoService } from 'correios-ts';
import ServicoEnum from 'correios-ts/dist/enums/ServicoEnum';
import CotacaoRequest from 'correios-ts/dist/models/CotacaoRequest';

const request = new CotacaoRequest();
request.$nCdEmpresa = "08082650";
request.$sDsSenha = "564321";
request.addServico(ServicoEnum.PAC);
request.addServico(ServicoEnum.SEDEX);
request.$sCepOrigem = "70002900";
request.$sCepDestino = "01021200";
request.$nVlPeso = "0.5";
request.$nVlComprimento = 20;
request.$nVlAltura = 30;
request.$nVlLargura = 40;
request.$nVlDiametro = 0;

const service = new CotacaoService();
const res = await service.realizarCotacao(request);

Rastrear uma encomenda

import { RastreioService } from 'correios-ts';

const eventos = await RastreioService.rastrear('OL541904724BR');

License

MIT

Keywords

correios

FAQs

Package last updated on 21 May 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts