Socket
Book a DemoInstallSign in
Socket

mode-s-msglen

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mode-s-msglen

A utility library for getting the message length of Mode S messages based on the downlink format

latest
Source
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

mode-s-msglen

A utility library for getting the message length of Mode S messages based on the downlink format.

Mode S is an aviation transponder interrogation mode used by Secondary Surveillance Radar (SSR) and Automatic Dependent Surveillance-Broadcast (ADS-B) systems.

For an example of this module in use, see AirplaneJS.

Build status js-standard-style

Installation

npm install mode-s-msglen --save

Usage

const msglen = require('mode-s-msglen')

const msgbits = msglen(17)

if (msgbits === msglen.LONG_MSG_BITS) {
  console.log('This is a long message')
} else {
  console.log('This is a short message')
}

API

Constants

  • LONG_MSG_BITS
  • SHORT_MSG_BITS

len = msglen(type)

Given the Downlink Format (DF) of the Mode S message, return the message length in bits.

License

MIT

Keywords

modes

FAQs

Package last updated on 25 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts