# react-native-surrender

> CLI script that clears Watchman, removes node_modules and cleans cache and other goodies

Latest version **2.0.0** (published 2019-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-surrender
pnpm add react-native-surrender
yarn add react-native-surrender
bun add react-native-surrender
```

Provides the command `surrender`.

## 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 | 2.0.0 |
| Published | 2019-02-12 |
| First published | 2017-10-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 55 |
| Author | Tiaan du Plessis |
| Maintainers | tiaanduplessis |

## Links

- npm: https://www.npmjs.com/package/react-native-surrender
- Repository: https://github.com/tiaanduplessis/react-native-surrender
- Issues: https://github.com/tiaanduplessis/react-native-surrender
- npm.io page: https://npm.io/package/react-native-surrender

## Dependencies (4)

- [del](https://npm.io/package/del.md) ^3.0.0
- [shell-exec](https://npm.io/package/shell-exec.md) ^1.0.2
- [get-them-args](https://npm.io/package/get-them-args.md) ^1.3.2
- [command-exists](https://npm.io/package/command-exists.md) ^1.2.8

## Recent versions

- 2.0.0 (latest) — 2019-02-12
- 1.2.0 — 2017-11-07
- 1.1.0 — 2017-10-30
- 1.0.0 — 2017-10-30

## README

<h1 align="center">react-native-surrender</h1>
<div align="center">
  <strong>CLI script that clears Watchman, removes node_modules and cleans cache and other goodies</strong>
</div>
<br>
<div align="center">
  <a href="https://npmjs.org/package/react-native-surrender">
    <img src="https://img.shields.io/npm/v/react-native-surrender.svg?style=flat-square" alt="npm package version" />
  </a>
  <a href="https://npmjs.org/package/react-native-surrender">
  <img src="https://img.shields.io/npm/dm/react-native-surrender.svg?style=flat-square" alt="npm downloads" />
  </a>
  <a href="https://github.com/feross/standard">
    <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square" alt="standard JS linter" />
  </a>
  <a href="https://github.com/prettier/prettier">
    <img src="https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=flat-square" alt="prettier code formatting" />
  </a>
  <a href="https://travis-ci.org/tiaanduplessis/react-native-surrender">
    <img src="https://img.shields.io/travis/tiaanduplessis/react-native-surrender.svg?style=flat-square" alt="travis ci build status" />
  </a>
  <a href="https://github.com/tiaanduplessis/react-native-surrender/blob/master/LICENSE">
    <img src="https://img.shields.io/npm/l/react-native-surrender.svg?style=flat-square" alt="project license" />
  </a>
  <a href="http://makeapullrequest.com">
    <img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square" alt="make a pull request" />
  </a>
  <a href="https://greenkeeper.io/">
    <img src="https://badges.greenkeeper.io/tiaanduplessis/react-native-surrender.svg)" alt="Greenkeeper badge" />
  </a>
</div>
<br>

<h2>Table of Contents</h2>
<details>
  <summary>Table of Contents</summary>
  <li><a href="#install">Install</a></li>
  <li><a href="#usage">Usage</a></li>
  <li><a href="#contribute">Contribute</a></li>
  <li><a href="#license">License</a></li>
</details>

## Install



```sh
$ npm install -g react-native-surrender
# OR
$ yarn global add react-native-surrender
```

## Usage

```sh
$ surrender
```

Is equivalent to running 

```
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules && npm install && npm cache clean --force
```

in the current directory.

Optionally you can use `yarn` or `pnpm` as the packager:

```sh
$ surrender --yarn
```

```sh
$ surrender --pnpm 
```

Run `gradlew clean` and remove build files in the android directory:

```sh
$ surrender --android
```

Or start the packager

```sh
$ surrender --start
```

Or clear and install pods

```sh
$ surrender --pods
```

## Contributing

Contributions are welcome!

1. Fork it.
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :D

Or open up [a issue](https://github.com/tiaanduplessis/react-native-surrender/issues).

## License

Licensed under the MIT License.

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