@pierce-h/shipengine-node
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ShipEngine Node

Quality jest

Installation

Install the package with:

npm install @pierce-h/shipengine-node
# or
yarn add @pierce-h/shipengine-node

Usage

The package needs to be configured with an API key. You can download a sandbox API key for testing purposes or a production API key.

Using ES modules:

import { ShipEngine } from "@pierce-h/shipengine-node";

const client = new ShipEngine("TEST_...")

(async () => {
  const carriers = await client.listCarriers();

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

or

const shipengine = require("@pierce-h/shipengine-node")

const client = new shipengine.ShipEngine("TEST_...")

client.listCarriers()
  .then(response => console.log(response))
  .catch(error => console.error(error));

Package Sidebar

Install

npm i @pierce-h/shipengine-node

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

21.3 kB

Total Files

27

Last publish

Collaborators

  • pierce-h