# codash

> co extension for lodash

Latest version **0.0.4** (published 2017-05-24) · 0 weekly downloads

## Install

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

## 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 | 2017-05-24 |
| First published | 2014-05-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | talrasha007 |

## Links

- npm: https://www.npmjs.com/package/codash
- Repository: https://github.com/talrasha007/co-lodash
- Homepage: https://github.com/talrasha007/co-lodash#readme
- Issues: https://github.com/talrasha007/co-lodash/issues
- npm.io page: https://npm.io/package/codash

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) *

## Recent versions

- 0.0.4 (latest) — 2017-05-24
- 0.0.3-1 — 2016-03-28
- 0.0.3 — 2016-03-28
- 0.0.2 — 2014-06-23
- 0.0.1 — 2014-05-20

## README

# codash
 *It's renamed to [co-lodash](https://www.npmjs.com/package/co-lodash)*

## API
 - _.isGenerator(obj)
 - _.sleep(mill)
 - _.coEach(collection, fn) // fn params (item, index, collection)
 - _.coMap(collection, fn)  // fn params (item, index, collection)
 - _.coReduce(collection, fn, memo) // fn params (memo, item, index, collection)

## Example

```js
var _ = require('codash'); // yes, it can do exactly the same as lodash, because it is lodash with some extendsions.

co(function *() {
    yield* _.coEach([1,2,3,4,5], function* (v) {
        console.log('each:', v);
        yield _.sleep(1000);
    });

    console.log(yield* _.coMap([1,2,3,4,5], function *(v) {
        console.log('map:', v);
        yield _.sleep(1000);
        return v * 2;
    }));

    console.log(yield* _.coReduce([1,2,3,4,5], function*(m, v) {
        console.log('reduce:', v);
        yield _.sleep(1000);
        return m + v;
    }, 0));
});
```

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