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

pluto99

v1.0.0

Published

A fast implementation of the so-called pluto99 theory in JavaScript.

Downloads

4

Readme

pluto99 ♇

A fast implementation of the so-called pluto99 theory in JavaScript.

What?

A JavaScript library to get the heliocentric rectangular coordinates of dwarf planet Pluto according to the "pluto99" theory.

The JavaScript implementation is about 13.23 Kb (minified and gzipped).

The WebAssembly version is 26.17 Kb (minified and gzipped).

Install

$ yarn add pluto99

Usage

JavaScript version

In node:

const pluto99 = require('pluto99');

// Get an object with the (x,y,z) coordinates of Pluto.
const coords = pluto99(2451545);

In browsers, we recommend to load the script asynchronously:

import('pluto99').then((pluto99) => {
  // Get an object with the (x,y,z) coordinates of Pluto.
  const coords = pluto99(2451545);
});

WebAssembly version

In browsers:

import pluto99Loader from 'pluto99/dist/pluto99-wasm';

pluto99Loader.then((pluto99) => {
  // Get an object with the (x,y,z) coordinates of Pluto.
  const coords = pluto99(2451545);
});

About the precision

According to the doc:

The theory is valid between the years -2997 and 2983. (60 centuries approximately).

The largest discrepancy obtained by a comparison with the source DE406 is 0.00005 ua.

The largest discrepancies obtained in a comparison with the elements deduced from DE406 are:

  • a : 0.080 au (semi-major axis)
  • l : 0.2 degree (mean longitude)
  • h,k : 0.0022 degree
  • p,q : 0.0003 degree

Contribute

Build the JavaScript version

$ yarn build

Build the WebAssembly version

Install emscripten, then:

$ ./build && yarn build

Run the unit tests

Make sure to run the build script first, then:

$ yarn test

List of changes

With regards to the original terms, the following changes have been applied:

  • Convert phi from degrees to radians
  • Multiple Nu by 1,000 for consistency with the vsop87 theory

"So-called"?

The theory full name is "Pluto's tables from -2997 to 2983" and was published in March 1999.

Although, unlike VSOP, it does not have an official short name, it is popularly called "pluto99".