# obake

> Pipe javascript into phantomjs, print the output, writing test coverage to disk along the way

Latest version **0.1.2** (published 2016-03-11) · MIT license · 0 weekly downloads

## Install

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

Provides the command `obake`.

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2016-03-11 |
| First published | 2016-03-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Alex Indigo |
| Maintainers | alexindigo |
| Keywords | browser, headless, testing, evaluate, pipe, stdin, coverage, istanbul, phantom, phantomjs |

## Links

- npm: https://www.npmjs.com/package/obake
- Repository: https://github.com/alexindigo/obake
- Homepage: https://github.com/alexindigo/obake#readme
- Issues: https://github.com/alexindigo/obake/issues
- npm.io page: https://npm.io/package/obake

## Dependencies (2)

- [envar](https://npm.io/package/envar.md) ^2.0.0
- [ghostface](https://npm.io/package/ghostface.md) ^1.5.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2016-03-11
- 0.1.1 — 2016-03-11
- 0.1.0 — 2016-03-04

## README

# obake

Pipe javascript into phantomjs, print the output, writing test coverage to disk along the way

[![Linux Build](https://img.shields.io/travis/alexindigo/obake/master.svg?label=linux:0.10-5.x&style=flat)](https://travis-ci.org/alexindigo/obake)
[![Coverage Status](https://img.shields.io/coveralls/alexindigo/obake/master.svg?label=code+coverage&style=flat)](https://coveralls.io/github/alexindigo/obake?branch=master)
[![Dependency Status](https://img.shields.io/david/alexindigo/obake.svg?style=flat)](https://david-dm.org/alexindigo/obake)

## TL;DR

`istanbul` + `phantomjs` + `tap` + `command line` = `<3`

## Install

```bash
npm install --save-dev obake
```

## Usage

### Ideal

```bash
browserify -t browserify-istanbul test/test-*.js | obake --coverage
```

### Real world

Add following to your `package.json` scripts:

```json
"scripts": {
  "pretest": "rimraf coverage; mkdirp coverage",
  "test": "browserify -t browserify-istanbul test/test-*.js | obake --coverage",
  "posttest": "istanbul report lcov text-summary"
}
```

_(Assuming you have `rimraf`, `mkdirp`, `browserify`, `browserify-istanbul` and `istanbul` installed as well)_

More documentation TBW.

## License

Deeply is licensed under the MIT license.

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