Socket
Socket
Sign inDemoInstall

autodev

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autodev

quick auto restart script for dev servers


Version published
Maintainers
1
Created
Source

autodev

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

It watches all dependencies and restarts the server on changes.

Install

npm install --save-dev autodev

Usage

// 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
# call on terminal:
autodev devserver.js

License

Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.

Keywords

FAQs

Package last updated on 17 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc