Socket
Book a DemoInstallSign in
Socket

airport-code-extractor

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

airport-code-extractor

Extracts airport codes from a string.

1.0.0
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

airport-code-extractor

The node package airport-code-extractor is a simple package that extracts airport codes from a string. It also has support for symbols and accents!

Where should I use this?

This package is specially useful if you're making a project based on airports, planes, plane tickets etc.

Installation

npm install airport-code-extractor

Example

const { getAirportCodes } = require('airport-code-extractor')


console.log(getAirportCodes("George: I really want to go to the Balkans this year. I probably want to go to Istanbul.")) // ['IST']

console.log(getAirportCodes("Joseph: If you're going to the Istanbul, you might as well go to İzmir!")) // ['IST', 'ADB']

Credits

Obviously, me, and this gist -> https://gist.github.com/tdreyno/4278655 which was highly transformed to make the data for this package!

FAQs

Package last updated on 15 Jan 2023

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.