0.1.0 • Published 8 years ago

planet-facts v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Planet facts

Some facts about the planets in our solar system.

Installation

npm install --save planet-facts

Usage

const planets = require('planet-facts')

console.log(`The volume of the Earth is ${planets.earth.volume}m³`)

API

The following properties are exposed.

PropertyPlanet name
mercuryMercury
venusVenus
earthEarth
marsMars
jupiterJupiter
saturnSaturn
uranusUranus
neptuneNeptune
plutoPluto (included for historical reasons)

Each planet has the following properties.

PropertyUnitDescription
densitykg/m³Density of the planet
radiusmEquatorial radius of the planet
volumeVolume of the planet
masskgMass of the planet