# chainemall

> Chain 'em all!

Latest version **1.0.0** (published 2016-07-09) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2016-07-09 |
| First published | 2016-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.2 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Guilherme Nagatomo |
| Maintainers | guilhermehn |

## Links

- npm: https://www.npmjs.com/package/chainemall
- npm.io page: https://npm.io/package/chainemall

## Recent versions

- 1.0.0 (latest) — 2016-07-09

## README

# chainemall
> Chain 'em all!

## :warning: Not meant to use in production

## Install

`npm i chainemall`

## Usage
~~~ js
const chainemall = require('chainemall')

// before
console.group('warning')
  console.warn('Attention!')
  console.log('Its nothing')
console.groupEnd('warning')

// after
chainemall(console)
  .group('warning')
    .warn('Attention!')
    .log('Its nothing')
  .groupEnd('warning')


const canvas = document.querySelector('#canvas')
const context = canvas.getContext('2d')

// before
context.beginPath()
context.moveTo(20, 20)
context.lineTo(200, 20)
context.stroke()

// after
chainemall(context)
  .beginPath()
  .moveTo(20, 20)
  .lineTo(200, 20)
  .stroke()

// You can pass returned values to the next method in the chain
const chain = chainemall({
  double: n => n * 2,
  log: x => console.log(x)
})

chain.double(2).log()
~~~

## Why?
Because it's cool!

## License
MIT

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