/node-msw

Primary LanguageJavaScript

node-msw

An API Wrapper for Magic Seaweed

Installation

npm install node-msw

Usage

const msw = require('node-msw');

Methods

Find nearby spots by coordinates

msw.findSpotByCoordinates({lat, lon})

Get spot

msw.getSpot(spotId)

Get forecast by spot

msw.getForecastBySpot(spotId, startDate, endDate)
/* unix timestamps
// future : 2 hours more minimum
// past : no minimum hours
*/

Get tide by spot

msw.getTideBySpot(spotId, startDate, endDate)
/* unix timestamps
// future : 2 hours more minimum
// past : no minimum hours
*/