Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including nmea0183-utilities with all npm packages installed. Try it out:

var nmea0183Utilities = require("nmea0183-utilities")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nmea0183-utilities v0.3.3

Various utilities for transforming NMEA0183 units into SI units for use in SK.

NMEA0183-utilities

Build Status

Various utilities for transforming NMEA0183 units into SI units for use in Signal K.

Installation

npm install nmea0183-utilities

Some examples

var utils = require('nmea0183-utilities');

// Transform 3 knots into m/s
var ms = utils.transform(3, 'knots', 'ms');

// Generate a source object for SignalK from a sentence
var source = utils.source('VDM');

// Generate a timestamp from a NMEA0183 time and date field
var source = utils.source('220104', '171089');
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free