Coder Social home page Coder Social logo

node-dev's Introduction

About

Node-dev is a development tool for Node.js that automatically restarts the node process when a script is modified.

With node-dev you don't have to manually specify which files should be watched nor do you have to deal with ignore lists for files that should be excluded. This is done using a thin wrapper script that hooks into the require() function as well as into several methods of the VM module to determine which files need to be monitored.

This does not only work for .js files, but also for .json or .node or .coffee files or any other custom extension that has been added to require.extensions.

Another great benefit of this zero-config approach is that it doesn't cause any unnecessary restarts when for example client-side only scripts are modified.

Desktop Notifications

Status and error messages are displayed as desktop notification using either Growl or libnotify.

Screenshot

Screenshot

Usage

Simply use the node-dev binary as you would normally use node.

Note: All arguments are passed on to the child-process. node-dev --debug app.js will debug your application, not the supervisor itself.

You may also use node-dev with CoffeeScript apps. Just run node-dev app.coffee -- that's all.

Installation

Node-dev can be installed via npm:

npm install -g node-dev

This will install node-dev and make it globally available (note the -g option).

In order to use Growl notifications growlnotify must be installed on your system.

Settings

You can set the NODE_DEV_CLEARSCREEN environment variable to true if in order to automatically clear the terminal screen upon restarts.

Contributors

node-dev's People

Contributors

aseemk avatar bronson avatar corpix avatar fgnass avatar hasenj avatar pyetras avatar ricardobeat avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.