@pierce-h/shipengine-node

ShipEngine API client written for Node.

Usage no npm install needed!

<script type="module">
  import pierceHShipengineNode from 'https://cdn.skypack.dev/@pierce-h/shipengine-node';
</script>

README

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));