current-ice-speed

Get the speed of the ICE train you're sitting in.

Usage no npm install needed!

<script type="module">
  import currentIceSpeed from 'https://cdn.skypack.dev/current-ice-speed';
</script>

README

current-ice-speed

Get the speed of the ICE train you're sitting in.

npm version ISC-licensed chat on gitter support me on Patreon

Usage

npx current-ice-speed
# 264 km/h
npx current-ice-speed --json
# 264

npx current-ice-speed --json # in a tunnel
# null

npx current-ice-speed --refresh 5 # refresh speed every 5 seconds

API

speed()

Returns a Promise that resolves with the current speed in km/h.

Contributing

If you have a question or have difficulties using current-ice-speed, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to the issues page.