npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@squawk/notams

v0.3.11

Published

Parse raw ICAO-format NOTAM strings into fully typed, structured objects

Readme

MIT License npm TypeScript

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.

Usage

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"

API

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:

  • Q-line - FIR, NOTAM code (subject + condition), traffic type, purpose, scope, altitude limits, center coordinates and radius
  • Item A - Affected location ICAO code
  • Item B - Start of effective period (YYMMDDHHmm UTC)
  • Item C - End of effective period, PERM (permanent), or EST (estimated)
  • Item D - Schedule for intermittent activity (e.g. "MON-FRI 0700-1600")
  • Item E - Free-text description of the condition or hazard
  • Item F - Lower altitude limit (e.g. "SFC", "FL050")
  • Item G - Upper altitude limit (e.g. "UNL", "FL180")

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.

Types

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';