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 🙏

© 2024 – Pkg Stats / Ryan Hefner

flight-stream

v0.1.1

Published

A readable stream that tracks nearby aircrafts

Downloads

7

Readme

flight-stream

Dependency Status unstable

This is a readable stream in objectMode that will provide flight information near your area matching certain conditions. By default it looks for A380s near Heathrow airport.

Usage

The library exposes only a readable stream that you may use however you like. The helper file irc.js uses it to pipe the information to an IRC channel via irc-stream.

Here is a simple way to just dump all matching planes spotted to console:

var config = {
  location: {
    latitude: 51.5083818,
    longitude: -0.5596166
  },
  maxDistance: 5*1000
};
var PlaneStream = require('plane-stream');
new PlaneStream(config).on('data', function (plane) {
  console.log("%j", plane);
});

Configuration

For the config object, the only thing you need to set is your location. But additionally you can set:

  • aircraft if want to filter by a single aircraft using ICAO codes
  • maxDistance the size of the bounding box to search for planes in meters
  • maxAltitude of a plane in feet
  • clockShift if you would not want to use relative north for direction output
  • throttleInterval in seconds if you feel you get too many updates

License

MIT-Licensed. See LICENSE file for details.