# @blueghost/moonad

> Typed Functional Utility Library for TypeScript

Latest version **1.5.0** (published 2020-07-28) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @blueghost/moonad
pnpm add @blueghost/moonad
yarn add @blueghost/moonad
bun add @blueghost/moonad
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2020-07-28 |
| First published | 2020-06-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=12.0.0 |
| Dependencies | 0 |
| Unpacked size | 93.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | BlueGhostGH |
| Maintainers | blueghost |
| Keywords | lazy, functional, typescript |

## Links

- npm: https://www.npmjs.com/package/@blueghost/moonad
- Repository: https://github.com/BlueGhostGH/moonad
- Homepage: https://github.com/BlueGhostGH/moonad#readme
- Issues: https://github.com/BlueGhostGH/moonad/issues
- npm.io page: https://npm.io/package/@blueghost/moonad

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.5.0 (latest) — 2020-07-28
- 1.4.2 — 2020-07-07
- 1.4.1 — 2020-07-07
- 1.4.0 — 2020-07-07
- 1.3.0 — 2020-07-05
- 1.2.0 — 2020-07-01
- 1.1.0 — 2020-06-30
- 1.0.0 — 2020-06-30

## README

# Moonad

![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/BlueGhostGH/moonad/Test/develop?logo=github-actions&logoColor=ffffff&style=for-the-badge) ![Code Climate coverage](https://img.shields.io/codeclimate/coverage/BlueGhostGH/moonad?logo=code-climate&style=for-the-badge) ![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/BlueGhostGH/moonad?logo=code-climate&style=for-the-badge) ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/BlueGhostGH/moonad?logo=code-climate&style=for-the-badge)

![npm bundle size](https://img.shields.io/bundlephobia/minzip/@blueghost/moonad?logo=npm&style=for-the-badge) ![npm](https://img.shields.io/npm/dw/@blueghost/moonad?color=blue&logo=npm&style=for-the-badge) ![npm](https://img.shields.io/npm/v/@blueghost/moonad?color=black&label=npm%20version&logo=npm&style=for-the-badge) ![npm type definitions](https://img.shields.io/npm/types/@blueghost/moonad?logo=typescript&style=for-the-badge)

![pkgreview.dev Package Ratings](https://img.shields.io/pkgreview/rating/npm/@blueghost/moonad?color=orange&style=for-the-badge)

## Typed Functional Utility Library for TypeScript

### `moonad` brings to the table well-known patterns and features from strongly typed functional languages to TypeScript

```typescript
import { Lazy } from "./Lazy"

const lazyApplier = Lazy.lazy(() => (x: number) => x * 2)

const lazyVal = Lazy.lazy(() => 3)
    .apply(lazyApplier)
    .map(x => x + 1)

console.log(lazyVal.value) // 7
```

### Installation

To install the stable version:

```bash
npm i @blueghost/moonad
```

### Using moonad

To use moonad simply use the following import syntax:

```ts
import { Lazy } from "@blueghost/moonad"
```

#### Documentation

You can find the automatically generated changelog [here](CHANGELOG.md)

The documentation in markdown format can be found [here](./docs/index.md)

#### Contributing

To contribute, check the contribution guide [here](CONTRIBUTING.md)

#### Licence

`moonad` uses the [MIT](LICENSE) licence

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