
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/procedures
Advanced tools
Pure logic library for querying US instrument procedure data. Look up SIDs
and STARs by computer code, find procedures by airport, filter by type, expand
route segments with transitions, or search by name. Contains no bundled data -
accepts an array of Procedure records at initialization. For zero-config use,
pair with @squawk/procedure-data.
Part of the @squawk aviation library suite. See all packages on npm.
import { usBundledProcedures } from '@squawk/procedure-data';
import { createProcedureResolver } from '@squawk/procedures';
const resolver = createProcedureResolver({ data: usBundledProcedures.records });
// Look up by computer code
const aalle = resolver.byName('AALLE4');
// Find all procedures for an airport
const denProcedures = resolver.byAirport('DEN');
// Get all STARs
const stars = resolver.byType('STAR');
// Expand a procedure (common route only)
const route = resolver.expand('AALLE4');
if (route) {
for (const wp of route.waypoints) {
console.log(wp.fixIdentifier, wp.lat, wp.lon);
}
}
// Expand with a named transition
const withTransition = resolver.expand('AALLE4', 'BBOTL');
// Search by name or code
const results = resolver.search({ text: 'AALLE' });
Consumers who have their own procedure data can use this package standalone:
import { createProcedureResolver } from '@squawk/procedures';
const resolver = createProcedureResolver({ data: myProcedures });
createProcedureResolver(options)Creates a resolver object from an array of Procedure records.
Parameters:
options.data - an array of Procedure objects (from @squawk/types)Returns: ProcedureResolver - an object with the lookup methods described below.
resolver.byName(computerCode)Looks up a procedure by its FAA computer code (e.g. "AALLE4", "ACCRA5").
Case-insensitive. Returns Procedure | undefined.
resolver.byAirport(airportId)Finds all procedures associated with a given airport identifier.
Case-insensitive. Returns Procedure[].
resolver.byType(type)Returns all procedures of a given type. Pass 'SID' or 'STAR'.
Returns Procedure[].
resolver.expand(computerCode, transitionName?)Expands a procedure into an ordered waypoint sequence.
Returns ProcedureExpansionResult | undefined. The result contains:
procedure - the full Procedure recordwaypoints - the ordered waypoint sequenceresolver.search(query)Searches procedures by name or computer code using case-insensitive substring matching. Results are returned in alphabetical order by computer code.
| Property | Type | Description |
|---|---|---|
text | string | Case-insensitive substring to match against name or computer code |
limit | number | Optional. Maximum number of results. Defaults to 20 |
type | ProcedureType | Optional. When provided, only this procedure type is returned |
Returns Procedure[].
FAQs
Instrument procedure lookup and expansion for SIDs, STARs, and Instrument Approach Procedures (IAPs)
The npm package @squawk/procedures receives a total of 41 weekly downloads. As such, @squawk/procedures popularity was classified as not popular.
We found that @squawk/procedures 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.