
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
Read and write data in Amateur Data Interchange Format (ADIF) with node.js.
To parse ADIF text, simply call ADIF.parse(text). The result is an ADIF
instance. To transform it into a plain old JavaScript object, call .toObject();
const { ADIF } = require('tcadif');
const fs = require('fs');
const path = require('path');
const input = fs.readFileSync(path.join(__dirname, 'sample.adi')).toString();
const adif = ADIF.parse(input);
console.log(adif.toObject());
To write ADIF text, simply instantiate an ADIF instance with an optional header
and qsos. Then call .stringify().
const { ADIF } = require('tcadif');
const fs = require('fs');
const path = require('path');
const input = {
qsos: [
{
BAND: '20m',
CALL: 'KG9JP',
FREQ: '14',
MODE: 'SSB',
NOTES: 'POTA K-4293 WI',
QSL_RCVD: 'N',
QSL_SENT: 'N',
QSO_DATE: '20230217',
QSO_DATE_OFF: '20230217',
RST_RCVD: '57',
RST_SENT: '59',
TIME_OFF: '172600',
TIME_ON: '172600',
TX_PWR: '20'
}
]
};
const adif = new ADIF(input);
console.log(adif.stringify());
Read a text stream and ouputs an object stream:
'use strict';
const { AdifReader } = require('tcadif');
const fs = require('fs');
const path = require('path');
const input = fs.createReadStream(path.join(__dirname, 'sample.adi'));
const reader = new AdifReader();
reader.on('data', record => console.log('data', record));
reader.on('error', err => console.error('err', err));
input.pipe(reader);
Reads an object stream and outputs a text stream:
'use strict';
const { AdifWriter } = require('tcadif');
const writer = new AdifWriter();
writer.pipe(process.stdout);
writer.write({
BAND: '20m',
CALL: 'VA2EPR',
MODE: 'CW',
QSO_DATE: '20230306',
TIME_ON: '1728',
OPERATOR: 'VA2NW',
});
Reads a text stream, transforms it into an object stream, transforms it back into a text stream, and writes a text stream:
'use strict';
const { AdifReader, AdifWriter } = require('tcadif');
const fs = require('fs');
const path = require('path');
const input = fs.createReadStream(path.join(__dirname, 'sample.adi'));
const reader = new AdifReader();
const writer = new AdifWriter();
const output = fs.createWriteStream(path.join(__dirname, 'sample-2.adi'));
input
.pipe(reader)
.pipe(writer)
.pipe(output);
| Field | Data Type | Sub Type | Description |
|---|---|---|---|
APP_TCADIF_KEY | Enumeration | App TCADIF Key Enumeration | the contacted station's Morse key. |
APP_TCADIF_KEY_INFO | String | the contacted station's Morse key information (make, model, etc). | |
APP_TCADIF_LICW | String | the contacted station's Long Island CW Club (LICW) member information. | |
APP_TCADIF_MY_KEY | Enumeration | App TCADIF Key Enumeration | the logging station's Morse key. |
APP_TCADIF_MY_KEY_INFO | String | the logging station's Morse key information (make, model, etc). | |
APP_TCADIF_QSO_ID | Uuid | App TCADIF QSO Identifier | Universally Unique IDentifier (UUID) for this QSO. |
| Data Type Name | Data Type Indicator | Description |
|---|---|---|
Uuid | A string representation of a Universally Unique IDentifier. See RFC4122. |
| Abbreviation | Key |
|---|---|
SK | Straight key |
SS | Sideswiper |
BUG | Bug |
SLP | Single-Lever Paddle |
DLP | Dual-Lever Paddle |
CPU | Computer |
QSO_DATE, TIME_ON, CALL, BAND or FREQ, MODE.FAQs
read and write Amateur Data Interchange Format (ADIF)
The npm package tcadif receives a total of 40 weekly downloads. As such, tcadif popularity was classified as not popular.
We found that tcadif demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.