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:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Various utilities for transforming NMEA0183 units into SI units for use in Signal K.
npm install nmea0183-utilities
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');