
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
airport-code-extractor
Advanced tools
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!
This package is specially useful if you're making a project based on airports, planes, plane tickets etc.
npm install airport-code-extractor
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']
Obviously, me, and this gist -> https://gist.github.com/tdreyno/4278655 which was highly transformed to make the data for this package!
FAQs
Extracts airport codes from a string.
We found that airport-code-extractor demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.