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 🙏

© 2024 – Pkg Stats / Ryan Hefner

addlee

v1.1.1

Published

Addison Lee CLI

Downloads

1

Readme

addlee --help

  Usage: addlee [options] [command]

  Commands:

    price [options] [locations]
    completion             Print command completion script
    config [key] [value]   Get and set options

  Options:

    -h, --help     output usage information
    -d, --debug    enable debugger
    -V, --version  output the version number

Install

$ npm install -g addlee

Features

  • Test Sandbox and Live
  • Get a quote for a car
  • Get a list of fixed zonal prices available
  • List available services for your account
  • List available payment methods for an account
  • Get details for a booking
  • Cancel a booking

Setup

Persist your MuleSoft Application API key to the config

$ addlee config apikey bf04c59b953aaad945bb10ee0eac532d:9b3344bb2ec9fb643eecac8389d2521b

Set the default price lookup locations for commands like price

$ addlee config defaultLocations NW13ER,W1A1AA

Commands

Price

Using the Quickbook v2 API this command returns a quote and price

$ addlee price --help

  Usage: price [options] [locations]

  Options:

    -h, --help               output usage information
    -t, --tomorrow           Set pickup time for tomorrow
    -p, --promo [promo]      Set Promo Code
    -k, --key <apikey>       Set API Key
    -S, --service <service>  Set service type for the quote
    -c, --cash               Set payment method to Cash
    -C, --credit-card        Set payment method to Credit Card
    -s, --sandbox            Use the sandbox env of MuleSoft

Here's an example using NW1 to W6

$ addlee price NW13ER,TW61RR
{ request_id: '0e39dde7-1074-47fe-b86e-70997eb19d81',
  locations:
   [ { address: '7-9 WILLIAM RD, KINGS CROSS, LONDON NW1 3ER, UK',
       lat: 51.52701649999999,
       long: -0.1393921,
       source: 'GOOGLE' },
     { address: 'TERMINAL 2, INNER RING E, LONGFORD, HOUNSLOW TW6 1RR, UK',
       lat: 51.46957580000001,
       long: -0.4496072,
       source: 'GOOGLE' } ],
  quotes:
   [ { service: 'OneFourPassengers',
       quote_id: '9f27a167-f6c9-4f81-940e-f040ce2e3c4b',
       total_price: 77.34,
       price: 77.34,
       discount: 0,
       vat: 12.89,
       currency: 'GBP',
       eta: 20,
       payment_token: 'N/A',
       payment_url: 'N/A' } ] }

Or with tables

$ addlee price NW13ER,TW61RR -T
┌─────────────┬──────────────────────────────────────┐
│ Request ID  │ 5dd019dd-8be7-4704-bbc0-4f3c99ca6d16 │
├─────────────┼──────────────────────────────────────┤
│ Quote ID    │ 4d702b47-107b-47ca-b767-311efc62f5c5 │
├─────────────┼──────────────────────────────────────┤
│ ETA         │ 15 mins                              │
├─────────────┼──────────────────────────────────────┤
│ Discount    │ 0 GBP                                │
├─────────────┼──────────────────────────────────────┤
│ VAT         │ 12.89 GBP                            │
├─────────────┼──────────────────────────────────────┤
│ Total Price │ 77.34 GBP                            │
└─────────────┴──────────────────────────────────────┘
┌──────────────────────────────────────────────────────────┬───────────────────┬────────────┬────────┐
│ ADDRESS                                                  │ LAT               │ LONG       │ SOURCE │
├──────────────────────────────────────────────────────────┼───────────────────┼────────────┼────────┤
│ 7-9 WILLIAM RD, KINGS CROSS, LONDON NW1 3ER, UK          │ 51.52701649999999 │ -0.1393921 │ GOOGLE │
├──────────────────────────────────────────────────────────┼───────────────────┼────────────┼────────┤
│ TERMINAL 2, INNER RING E, LONGFORD, HOUNSLOW TW6 1RR, UK │ 51.46957580000001 │ -0.4496072 │ GOOGLE │
└──────────────────────────────────────────────────────────┴───────────────────┴────────────┴────────┘

To test different pricing by accounts you can change API key using the --key <key> argument.

$ addlee price NW13ER,W60TB --key 91hux89ux91oijsq98s1:89djdqj1kjljlkkldoi990

Cancel a Booking

Cancel a booking by Job/System ID. Options include --sandbox and --key.

$ addlee cancel J12300000000987654321

License

Copyright (c) 2016 Edward Knowles

MIT License

Acknowledgments