# leave

> Console.log and leave

Latest version **1.0.1** (published 2016-07-23) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2016-07-23 |
| First published | 2016-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Khalid REHIOUI |
| Maintainers | javascript |
| Keywords | log, print, dump, leave, exit, die |

## Links

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

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-07-23
- 1.0.0 — 2016-07-23

## README

Console.log and Leave !!
========================

![Leave](https://api.travis-ci.org/Javascipt/leave.svg)

If you too think these two lines are annoying to repeat everytime you want to debug,

```javascript
    console.log(value);
    process.exit();
```

... then this package is the right choice for you

### installation

```
    $ npm install leave
```

### how does it work?

```javascript
    var leave = require('leave');
    leave(value); // will print and process.exit()
```

it has same use as console.log, here are more examples:

```javascript
    var value = 123;
    leave("value", value); // will print "value 123"
    leave("The value is %s", value); // will print "The value is 123"
```

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