@neaps/tide-predictor
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@neaps/tide-predictor", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Tide predictor", | ||
@@ -5,0 +5,0 @@ "main": "", |
@@ -1,2 +0,2 @@ | ||
[![CircleCI](https://circleci.com/gh/neaps/tide-predictor.svg?style=svg)](https://circleci.com/gh/neaps/tide-predictor) [![Coverage Status](https://coveralls.io/repos/github/neaps/tide-predictor/badge.svg?branch=master)](https://coveralls.io/github/neaps/tide-predictor?branch=master) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor?ref=badge_shield) | ||
![example workflow](https://github.com/neaps/tide-predictor/actions/workflows/test.yml/badge.svg) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fneaps%2Ftide-predictor?ref=badge_shield) | ||
@@ -43,4 +43,4 @@ # Tide predictor | ||
name: 'M2', | ||
speed: 28.984104 | ||
} | ||
speed: 28.984104, | ||
}, | ||
//....there are usually many, read the docs | ||
@@ -50,3 +50,3 @@ ] | ||
const highLowTides = tidePrediction(constituents, { | ||
phaseKey: 'phase_GMT' | ||
phaseKey: 'phase_GMT', | ||
}).getExtremesPrediction(new Date('2019-01-01'), new Date('2019-01-10')) | ||
@@ -81,4 +81,4 @@ ``` | ||
high: 'High tide', | ||
low: 'Low tide' | ||
} | ||
low: 'Low tide', | ||
}, | ||
}) | ||
@@ -96,9 +96,9 @@ ``` | ||
high: 1, | ||
low: 2 | ||
low: 2, | ||
}, | ||
time_offset: { | ||
high: 1, | ||
low: 2 | ||
} | ||
} | ||
low: 2, | ||
}, | ||
}, | ||
}) | ||
@@ -135,3 +135,3 @@ ``` | ||
const waterLevel = tidePrediction(constituents).getWaterLevelAtTime({ | ||
time: new Date() | ||
time: new Date(), | ||
}) | ||
@@ -138,0 +138,0 @@ ``` |
161393