
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@squawk/notams
Advanced tools
Parse raw ICAO-format NOTAM strings into fully typed, structured objects
Pure parsing library for NOTAM (Notice to Air Missions) strings. Supports both ICAO-format and FAA domestic (legacy) format NOTAMs. Parses raw NOTAMs into fully typed, structured objects. Contains no network calls or data fetching - consumers provide raw NOTAM strings however they obtain them (FAA NOTAM API, ICAO API, local feed, file dump) and the package returns structured results.
Part of the @squawk aviation library suite. See all packages on npm.
import { parseNotam } from '@squawk/notams';
const notam = parseNotam(
'A1242/24 NOTAMN\n' +
'Q) EGLL/QMRLC/IV/NBO/A/000/999/5129N00028W005\n' +
'A) EGLL\n' +
'B) 2404201400\n' +
'C) 2404202200\n' +
'E) RWY 09L/27R CLSD DUE TO RESURFACING CONSTRUCTION\n' +
'F) SFC\n' +
'G) UNL',
);
console.log(notam.id); // "A1242/24"
console.log(notam.action); // "NEW"
console.log(notam.qualifier?.fir); // "EGLL"
console.log(notam.qualifier?.subjectCode); // "MR"
console.log(notam.qualifier?.conditionCode); // "LC"
console.log(notam.locationCodes); // ["EGLL"]
console.log(notam.text); // "RWY 09L/27R CLSD DUE TO RESURFACING CONSTRUCTION"
console.log(notam.effectiveFrom); // { year: 24, month: 4, day: 20, hour: 14, minute: 0 }
console.log(notam.lowerLimit); // "SFC"
console.log(notam.upperLimit); // "UNL"
parseNotam(raw)Parses a raw ICAO-format NOTAM string into a structured Notam object. Handles
NOTAMN (new), NOTAMR (replacement), and NOTAMC (cancellation) action types.
Parses the Q-line qualifier and items A through G:
Accepts both multi-line and single-line NOTAM input. Gracefully handles NOTAMs without a Q-line when items A through E are present.
parseFaaNotam(raw)Parses a raw FAA domestic (legacy) NOTAM string into a structured FaaNotam
object. FAA domestic NOTAMs use a keyword-prefixed body format (RWY, TWY,
OBST, AD, etc.) rather than the ICAO Q-line + items A through G structure.
The recognized keywords are enumerated by the FaaNotamKeyword type.
This package exports all NOTAM-related type definitions directly. Import types from @squawk/notams rather than @squawk/types:
import type { Notam, NotamQualifier, FaaNotam, FaaNotamKeyword } from '@squawk/notams';
FAQs
Parse raw ICAO-format NOTAM strings into fully typed, structured objects
The npm package @squawk/notams receives a total of 22 weekly downloads. As such, @squawk/notams popularity was classified as not popular.
We found that @squawk/notams 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
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.