npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

errandlr-commerce-node

v2.0.0

Published

A package for Errandlr services

Downloads

4

Readme

errandlr-commerce node

The errandlr-commerce-node package is an npm package developed by errandlr.

What is this?

This package allows developers integrate with errandlr services.

Installation

Using npm:

$ npm i errandlr-commerce-node

Initialization

  • After installation, import the ErrandlrService class from the package:

    import { ErrandlrService } from 'errandlr-commerce-node';

    OR

    const { ErrandlrService } = require('errandlr-commerce-node');
  • When instantiating the class, pass your server key as an argument:

    const errandlr = new ErrandlrService(serverKey);

    Note: you export the instantiated object so you can import to any file in your codebase.

Usage

  1. Get estimate - using the instantiated object(errandlr), you can use the get estimate feature by calling getEstimate method(sample code below):

    | Property | Type | Description | | -------- | :------: | :---------------------------------------------------------: | | pickup | required | Pickup object can have id, label or both | | dropoff | required | Dropoff is an array of objects containing id, label or both | | optimize | optional | Defaults to false, useful when you have multiple dropoffs |

    // NOTE: pickup and dropoff can have id, label or both.
    const param = {
      pickup: {
        id: 'PLACE ID', // FULL ADDRESS OR GOOGLE PlACE ID
        label: 'ADDRESS', // FULL ADDRESS e.g. (SPAR Lekki, Palm Springs Road, Lekki, Nigeria
      },
      optimize: true, // useful when you have multiple dropoffs
      dropoff: [
        {
          id: 'GOOGLE PLACE ID', // e.g. place_id:ChIJpwtSAfr1OxARpPUPvljsXm0
          label: 'ADDRESS', // e.g. Ikoyi Bridge, Lekki - Ikoyi Link Bridge, Lagos, Nigeria
        },
      ],
    };
    
    const response = await errandlr.getEstimate(param);
  2. Create Delivery Request - using the instantiated object(errandlr), you can use the create delivery request feature by calling createRequest method(sample code below):

    | Property | Type | Description | | :------------------: | :------: | :-------------------------------------------------------------------: | | geoId | required | Unique id returned from getEstimate | | name | required | Sender's name | | email | required | Sender's email | | phone | required | Sender's phone | | deliverToInformation | required | Array of objects, each containing information on package and receiver | | state | required | State where package is being delivered | | country | required | Country where package is being delivered | | city | optional | City where package is being delivered | | localGovt | optional | Local Govermment where package is being delivered | | latitude | optional | Latitude of pickup location | | longitude | optional | Longitude of pickup location | | pickupNotes | optional | Pickup note for request |

    const param = {
       geoId: 'GEO ID' // unique id returned from getEstimate response,
       name: 'SENDER NAME' // name of sender,
       email: '[email protected]' // email of sender,
       phone: '+234XXXXXXXXXX' // sender's phone number,
       deliverToInformation: [
          {
             order: 1, // required e.g. 1
             name: 'RECEIVER NAME', // required
             phone: '+234XXXXXXXXXX', // required
             packageValue: 1000, // optional e.g. 1000
             packageType: 'PACKAGE TYPE', // optional
             packageDetail: 'PACKAGE DETAIL', // optional
             deliveryNotes: 'DELIVERY NOTES', // optional
          }
       ],
       state: 'LAGOS',
       country: 'NIGERIA',
       city: 'CITY', // e.g. Lekki
       localGovt: 'LOCAL GOVERNMENT',
       latitude: 6.5244, // e.g. 6.5244
       longitude: 3.3792, // e.g. 3.3792
       pickupNotes: 'PICKUP NOTES' // e.g. Pickup at 12pm.,
    }
    
    const response = await errandlr.createRequest(param);
  3. Get Delivery Request Status - using the instantiated object(errandlr), you can use the get estimate feature by calling getStatus method(sample code below):

    | Property | Type | Description | | -------- | :------: | :--------------------: | | id | required | Tracking ID of request |

    const param = {
      id: 'TRACKING ID', //e.g. GNEFHZBLT3MSWMR
    };
    const response = await errandlr.getStatus(param);