# bassline

> JavaScript library providing Maybe, Either, and Promise objects

Latest version **0.0.4** (published 2012-02-12) · 0 weekly downloads

## Install

```sh
npm install bassline
pnpm add bassline
yarn add bassline
bun add bassline
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2012-02-12 |
| First published | 2012-02-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | eric thul |
| Maintainers | ethul |
| Keywords | maybe, nothing, just, either, left, right, functor, applicative, monad, promise |

## Links

- npm: https://www.npmjs.com/package/bassline
- Repository: https://github.com/ethul/bassline
- npm.io page: https://npm.io/package/bassline

## Alternatives

- [@snazzah/davey](https://npm.io/package/@snazzah/davey.md) — 1.5M weekly downloads
- [@vendure/testing](https://npm.io/package/@vendure/testing.md) — 8.3K weekly downloads
- [vue-simple-context-menu](https://npm.io/package/vue-simple-context-menu.md) — 6.6K weekly downloads
- [cypress-webpack-preprocessor-v5](https://npm.io/package/cypress-webpack-preprocessor-v5.md) — 2.1K weekly downloads
- [@backstage/plugin-catalog-backend-module-puppetdb](https://npm.io/package/@backstage/plugin-catalog-backend-module-puppetdb.md) — 1.3K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2012-02-12
- 0.0.3 — 2012-02-06
- 0.0.2 — 2012-02-05
- 0.0.1 — 2012-02-05

## README

# Bassline

Bassline is a JavaScript library that exposes two primary types, `maybe`
and `either`. The `maybe` type  may be used to model an optional value.
The constructor functions `nothing` and `just` create a `maybe`.
The `either` type is used to represent values with two possibilities.
The constructor functions `left` and `right` create such values.

## Installation

* Install Bassline with NPM

        npm install bassline

## Getting Started: Hello World

```javascript
var bassline = require("bassline")
  , just = bassline.just;

console.log(just("Hello").fmap(function(a){return a + " World";}).get);

$ node hello.js
Hello World
```

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