🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

purplship

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purplship

Multi-carriers Shipping API Node library (Canada Post, DHL, FedEx, UPS, Purolator and more)

2021.11.0
latest
Source
npm
Version published
Weekly downloads
9
350%
Maintainers
1
Weekly downloads
 
Created
Source

Purplship Node.js Library

Purplship is a Multi-carrier Shipping API that simplifies the integration of logistic carrier services.

Visit next.purplship.com to deploy your private cloud multi-carrier shipping API.

Documentation

See the full Node API docs.

Installation

Install using npm or yarn

npm i purplship
# or 
yarn add purplship

Usage

The package needs to be configured with your account's API key, which is available in the Purplship Dashboard.

const purplship = require('purplship')('key_...', 'https://instance.purplship.api');

purplship.carriers.list({})
    .then(carriers => console.log(carriers))
    .catch(error => console.error(error));

Or using ES modules and async/await:

import Purplship from 'purplship';
const purplship = Purplship('key_...', 'https://instance.purplship.api');

(async () => {
  const carriers = await purplship.carriers.list({});

  console.log(carriers);
})();

Author

Team purplship | hello@purplship.com | purplship.com Daniel K | danielk.developer@gmail.com | danielk.xyz

Keywords

Multi-carriers

FAQs

Package last updated on 14 Dec 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