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

iss_node

v0.2.0

Published

A module that returns a readable stream based on the position of the International Space Station

Readme

iss_node

iss_node is a module that generates a readable stream based on a given satellite's location in orbit. All data comes from the wheretheiss.at API: http://wheretheiss.at/w/developer, and is wrapped using Node's stream.Readable API.

This project was an exercise in learning about the Node streaming API. It works, and has test coverage, but there may be bugs. Please submit pull requests for any issues you may come across.

This repo also contains documentation for a Batch animation class, unrelated to ISS. This documentation is in assignment_3.md

##Installation

(Assumes you have Node and NPM installed)

  1. Clone this repository locally and cd into it

  2. Type npm pack, which will create a .tgz of the repo in the same directory

  3. cd to the top-level directory for your project where you are using iss_node

  4. Type npm install path/to/filename.tgz, which will install the module in your node_modules folder, or it will create the folder if none exists.

  5. You can equally run the example files within this repo. from your command line.

###Use

Require the module, and set it equal to a constructor, i.e: var SpaceStream = require('iss_node') A stream takes two parameters:

  1. Satelite ID (the NORAD id for a satelite: They are available at http://www.celestrak.com/pub/satcat.txt)
  2. Frequency (The number of times per minute to request new data from the wheretheiss.at API: e.g. 30 = one request every .5 seconds, .5 equals one request every two minutes. Must be greater than 0, less than 60).
  3. Consume the stream however you wish. Please refer to Node's documentation for more info: http://nodejs.org/api/stream.html.
  4. Refer to the two examples in the "examples" folder for more implementation details.

###Examples

  1. streamDemo.js --- Creates a new stream for the ISS (25544), makes requests 30 times/minute, and pipes the result to process.stdout
  2. deltaLatLong.js --- Implements a Transform stream that changes a satelite location object into a new object that shows the rate of change per minute of latitude, as well as the rate of change per minute of longitude. Calculation details are in the file.

###Tests (Assumes you have mocha installed globally)

Tests for this module are written in Mocha, are located in the test/ directory, and can be run from the top level of the iss_node directory with: npm test

###Contact If you have any questions or concerns, you can reach the developer at [email protected], or on Twitter: @taylorharwin