šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

launchlib-js

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

launchlib-js

Unofficial Wrapper for https://launchlibrary.net

0.0.5
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Ā 
Created
Source

LaunchLib-js

NPM version NPM downloads MIT License

Unofficial NPM package for wrapping Launch Library (https://launchlibrary.net)

Usage

Install

npm install --save launchlib-js

Import

const Launch = require('launchlib-js')

const LaunchLib = new Launch()

Examples

LaunchLib takes two parameters, a function name, and a variable, then returns the result depends on the parameters passed in. LaunchLib.get(functionName, var).then(data => {...})

LaunchLib.get('getLaunches', '12')
    .then(data => { 
        // do something
    })
    .catch(err => { 
        // handle error
    }) 

The above call will return next 12 upcoming launches.

Supported Request Types and Parameters

  • getAgencyById
  • getAgencyByAbbr
  • getAgenciesByName
  • getAgenciesByType
  • getAgenciesByCountryCode
  • getAgencyTypeById
  • getAgencyTypeByName
  • getEventTypeById
  • getEventTypeByName
  • getLaunchById
  • getLaunchByName
  • getLaunches
  • getLaunchesAfter
  • getLaunchesBetween
  • getLaunchEventById
  • getLaunchStatusById
  • getLaunchStatusByName
  • getLocationById
  • getLocationByName
  • getLocationByCountryCode
  • getMissionById
  • getMissionByName
  • getMissionEventById
  • getMissionEventByParentId
  • getMissionTypeById
  • getMissionTypeByName
  • getPadById
  • getPadTypeByName
  • getPadTypeByLocationId
  • getRocketById
  • getRocketTypeByName
  • getRocketTypeByConfigName
  • getRocketEventById
  • getRocketEventByLaunchId
  • getRocketFamilyById

Example App

Click here to see a React + Node.js exmaple of launchlib-js

License

Moment.js is freely distributable under the terms of the MIT license.

FAQs

Package last updated on 27 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts