# function-body-regex

> regex to rip off function body

Latest version **0.0.3** (published 2015-01-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install function-body-regex
pnpm add function-body-regex
yarn add function-body-regex
bun add function-body-regex
```

## 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.3 |
| Published | 2015-01-14 |
| First published | 2015-01-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | nulltask |
| Maintainers | nulltask |

## Links

- npm: https://www.npmjs.com/package/function-body-regex
- Repository: https://github.com/nulltask/function-body-regex
- Issues: https://github.com/nulltask/function-body-regex/issues
- npm.io page: https://npm.io/package/function-body-regex

## Recent versions

- 0.0.3 (latest) — 2015-01-14
- 0.0.2 — 2015-01-10
- 0.0.1 — 2015-01-10

## README

# function-body-regex

[![Build Status](https://travis-ci.org/nulltask/function-body-regex.svg?branch=master)](https://travis-ci.org/nulltask/function-body-regex)

function-body-regex is regex to rip off function body.

## Example

```js
var regex = require('function-body-regex');

var fn = function() {
  console.log('this is function body.');
  return true;
};

var ret = regex.exec(fn.toString());
console.log(ret[1]);  // => '\nconsole.log(\'this is function body.\');\nreturn true;\n'
```

## Installation

    $ npm install function-body-regex

## License

MIT

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