Null Pointer Micromanagement
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

node-ups

1.0.5 • Public • Published

Node-UPS

Javascript client for UPS JSON apis.

Usage

const UPS = require('node-ups');
 
const ups = new UPS({
  isSandbox: true,
  username: 'UPS_ACCOUNT_USERNAME',
  password: 'UPS_ACCOUNT_PASSWORD',
  licenseNumber: '<UPS_ACCESS_KEY>',
});
 
try {
  const shipment = await ups.shipment.create(shipmentPayload);
} catch ({ UPSError }) {
  console.log(UPSError.response.errors);
}
 

TODO

  • Add more APIs.
  • Use @jsdoc to document APIs.

Install

npm i node-ups

DownloadsWeekly Downloads

8

Version

1.0.5

License

MIT

Unpacked Size

6.32 kB

Total Files

11

Last publish

Collaborators

  • avatar