Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

planet-facts

0.1.0 • Public • Published

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}`)

API

The following properties are exposed.

Property Planet name
mercury Mercury
venus Venus
earth Earth
mars Mars
jupiter Jupiter
saturn Saturn
uranus Uranus
neptune Neptune
pluto Pluto (included for historical reasons)

Each planet has the following properties.

Property Unit Description
density kg/m³ Density of the planet
radius m Equatorial radius of the planet
volume Volume of the planet
mass kg Mass of the planet

Keywords

none

install

npm i planet-facts

Downloadsweekly downloads

0

version

0.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability