# factful.js

> A Package which can give you Random Facts, Random Nasa Images in an easy way!

Latest version **1.2.8** (published 2020-09-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install factful.js
pnpm add factful.js
yarn add factful.js
bun add factful.js
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.8 |
| Published | 2020-09-08 |
| First published | 2020-07-29 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | science_spot_codes |
| Maintainers | science_spot_codes |
| Keywords | factful.js, facts, snowflake, spot-creation, mongo.eco, space-facts.js, decimal developement, dashboard developement |

## Links

- npm: https://www.npmjs.com/package/factful.js
- Homepage: http://README.md
- npm.io page: https://npm.io/package/factful.js

## Dependencies (3)

- [cat-facts](https://npm.io/package/cat-facts.md) ^1.0.2
- [dog-facts](https://npm.io/package/dog-facts.md) ^1.0.3
- [covid-facts](https://npm.io/package/covid-facts.md) ^1.0.1

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 1.2.8 (latest) — 2020-09-08
- 1.2.7 — 2020-09-08
- 1.1.5 — 2020-08-27
- 1.1.1 — 2020-08-26
- 1.1.0 — 2020-08-26
- 1.0.1 — 2020-08-16
- 0.1.4 — 2020-08-04
- 0.1.1 — 2020-08-04
- 0.0.9 — 2020-08-03
- 0.0.6 — 2020-07-31
- 0.0.5 — 2020-07-30
- 0.0.3 — 2020-07-29

## README

# Factful.js
A Package which can give you Random Facts, Random Nasa Images in an easy way!

# Index
- Importing Module
- Getting Random Facts
- Getting Random Nasa Image
- Typescript Example

# Links
- [GitHub](https://github.com/Scientific-Guy)
- [Discord Server](https://discord.gg/FrduEZd)

## Quick Example
#### 1. Importing Module
```js 
// Import Modules
const factful = require('factful.js')
```

#### 2. Getting Facts
```js 
const facts = factful.fact()

// Getting Random Fact from Random Cateogary
console.log(facts.all)

// Getting Random Fact from a Paticular Cateogary
// Current Cateogaries: emoji, space, cat, dog, covid, computer, food
console.log(facts.emoji)
console.log(facts.space)
console.log(facts.cat)
console.log(facts.dog)
console.log(facts.covid)
console.log(facts.computer)
console.log(facts.food)
```

#### 3. Getting Random Nasa Image
```js 
// Will return you the Image URL not the Image File!
console.log(factful.nasa())
```

#### 4. Typescript Example
```ts
// Import package
import * as factful from 'factful.js'

// Getting Random fact
const facts = factful.fact()

// Getting Random Fact from Random Cateogary
console.log(facts.all)

// Getting Random Fact from a Paticular Cateogary
// Current Cateogaries: emoji, space, cat, dog, covid, computer, food
console.log(facts.emoji)
console.log(facts.space)
console.log(facts.cat)
console.log(facts.dog)
console.log(facts.covid)
console.log(facts.computer)
console.log(facts.food)

// Will return you the Image URL not the Image File!
console.log(factful.nasa())
```

### © Science Spot | Decimal Development - 2020

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