# jasmine-extract

> extract info about jasmine specs

Latest version **0.0.1** (published 2014-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install jasmine-extract
pnpm add jasmine-extract
yarn add jasmine-extract
bun add jasmine-extract
```

## 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.0.1 |
| Published | 2014-06-05 |
| First published | 2014-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Brian Ford |
| Maintainers | btford |
| Keywords | jasmine, testing, esprima, documentation, docs |

## Links

- npm: https://www.npmjs.com/package/jasmine-extract
- Repository: https://github.com/btford/jasmine-extract
- Issues: https://github.com/btford/jasmine-extract/issues
- npm.io page: https://npm.io/package/jasmine-extract

## 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
- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2014-06-05
- 0.0.0 — 2014-06-05

## README

# jasmine-extract

extract jasmine specs so you can add them to your docs

## Install

```shell
npm install jasmine-extract
```

### Usage

Requires [esprima](http://esprima.org/).

Takes an AST, returns an object corresponding to the test structure:

```javascript
var esprima = require('esprima');
var fs      = require('fs');
var extract = require('../extract');


var contents = fs.readFileSync(__dirname + '/input.spec.js', 'utf8');
var ast = esprima.parse(contents, {range: false});
console.log(extract(ast));

// logs this:
//
// { before: [],
//   beforeEach: [],
//   its: {},
//   describes:
//    { foo:
//       { before: [Object],
//         beforeEach: [Object],
//         its: [Object],
//         describes: {} } } }
```


## License
MIT

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