# autodev

> quick auto restart script for dev servers

Latest version **0.1.2** (published 2017-07-17) · MIT license · 0 weekly downloads

## Install

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

Provides the command `autodev`.

## 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 | 2017-07-17 |
| First published | 2017-04-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Paul Pflugradt |
| Maintainers | paulpflug |
| Keywords | development, server, automatic |

## Links

- npm: https://www.npmjs.com/package/autodev
- Repository: https://github.com/paulpflug/autodev
- Homepage: https://github.com/paulpflug/
- Issues: https://github.com/paulpflug/autodev/issues
- npm.io page: https://npm.io/package/autodev

## Dependencies (3)

- [chokidar](https://npm.io/package/chokidar.md) ^1.7.0
- [commander](https://npm.io/package/commander.md) ^2.11.0
- [recursive-uncache](https://npm.io/package/recursive-uncache.md) ^0.1.0

## Recent versions

- 0.1.2 (latest) — 2017-07-17
- 0.1.1 — 2017-07-13
- 0.1.0 — 2017-07-13
- 0.0.2 — 2017-04-09
- 0.0.1 — 2017-04-08

## README

# autodev

if you need a quick server for development, autodev is your friend.

It watches all dependencies and restarts the server on changes.

### Install

```sh
npm install --save-dev autodev
```

### Usage

```js
// devserver.js
// requires outside won't get watched
Koa = require("koa") // koa
express = require("express") // express
module.exports = (server, isRestart) =>
  // requires inside will get watched
  yourapp = require("./yourapp")
  // your startup code
  // koa
  app = new Koa()
  server.on("request",app.callback())
  // express
  app = express()
  server.on("request",app)
  
  // startup server
  server.listen(8080)
  return () =>
    // your teardown code
```

```sh
# call on terminal:
autodev devserver.js
```
## License
Copyright (c) 2017 Paul Pflugradt
Licensed under the MIT license.

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