# sphere-math

> returns radius, circumference, and diameter of a sphere

Latest version **1.0.0** (published 2023-02-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install sphere-math
pnpm add sphere-math
yarn add sphere-math
bun add sphere-math
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2023-02-13 |
| First published | 2023-02-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | samunt |
| Maintainers | samunt |
| Keywords | uuid |

## Links

- npm: https://www.npmjs.com/package/sphere-math
- Repository: samunt
- npm.io page: https://npm.io/package/sphere-math

## Dependencies (2)

- [prompt](https://npm.io/package/prompt.md) ^1.3.0
- [requirejs](https://npm.io/package/requirejs.md) ^2.3.6

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2023-02-13

## README

To use this module, you would need to install the prompt package as a dependency, for example by running npm install prompt. Then you can import the module in another script and call the calculateSphereDimensions() function to prompt the user and calculate the sphere dimensions:

// main.js

const calculateSphereDimensions = require('./sphere-dimensions');

calculateSphereDimensions();
When you run node main.js, the prompt will appear and ask the user to enter the diameter of the sphere. Once the user enters a valid number, the module will calculate and display the diameter, radius, and circumference of the sphere.

---
_Source: https://npm.io/package/sphere-math · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
