# co-level

> levelup wrappers for 'co'

Latest version **1.0.1** (published 2014-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install co-level
pnpm add co-level
yarn add co-level
bun add co-level
```

## 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.1 |
| Published | 2014-01-16 |
| First published | 2014-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Julian Gruber |
| Maintainers | juliangruber |
| Keywords | levelup, leveldb, level, co, generators, coroutines |

## Links

- npm: https://www.npmjs.com/package/co-level
- Repository: https://github.com/juliangruber/co-level
- Issues: https://github.com/juliangruber/co-level/issues
- npm.io page: https://npm.io/package/co-level

## Dependencies (1)

- [thunkify](https://npm.io/package/thunkify.md) 0.0.1

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2014-01-16
- 1.0.0 — 2014-01-16

## README

# co-level

[LevelUP](https://github.com/rvagg/node-levelup) wrappers for
[co](https://github.com/visionmedia/co).

Currently you have to pass the flag `--harmony` to node and need at
least version `0.11.0`.

[![build status](https://secure.travis-ci.org/juliangruber/co-level.png)](http://travis-ci.org/juliangruber/co-level)

## Usage

```js
var level = require('level');
var wrap = require('co-level');
var co = require('co');

var db = wrap(level('db'));

co(function *() {
  yield db.put('foo', 'bar');
  yield db.put('bar', 'baz');

  var res = yield db.get('foo');
  console.log('foo -> %s', res);

  var res = yield db.get('bar');
  console.log('bar -> %s', res);

  // whoop whoop
})();
```

## API

### wrap(db)

Return a wrapped leveldb.

## Installation

With [npm](https://npmjs.org) do:

```bash
npm install co-level
```

## License

(MIT)

Copyright (c) 2013 Julian Gruber &lt;julian@juliangruber.com&gt;

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

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