@danielmoraes/fly

0.0.3 • Public • Published

fly
Fly

Airfare search engine for Node.js.

npm version npm downloads Standard - JavaScript Style Guide


Install

To install Fly for use in Node.js with require('@danielmoraes/fly'), run:

npm install @danielmoraes/fly

To install a fly-cli command line app, run:

npm install @danielmoraes/fly-cli -g

Usage

In Node.js

import { findLowestFares } from '@danielmoraes/fly'

findLowestFares('sao', 'rio', '2019-01-01')
  .then(response => { console.log(response) }

As a command line app

Fly is also available as a command line app. Here's how to use it:

$ npm install @danielmoraes/fly-cli -g
$ fly-cli --help

To make a query:

$ fly-cli search sao rio 2019-01-01
{ sources:
   [ { sourceName: 'Avianca', lowestFare: 169 },
     { sourceName: 'Azul', lowestFare: 187.1 },
     { sourceName: 'Gol', lowestFare: 175.17 },
     { sourceName: 'Latam', lowestFare: 195.84 } ],
  lowestFare: 169 }

License

MIT. Copyright (c) Daniel Moraes.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.32latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.32
0.0.22
0.0.12

Package Sidebar

Install

npm i @danielmoraes/fly

Weekly Downloads

6

Version

0.0.3

License

MIT

Unpacked Size

66.8 kB

Total Files

33

Last publish

Collaborators

  • danielmoraes