Giter Site home page Giter Site logo

sir-will / run.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dtrejo/run.js

0.0 2.0 0.0 222 KB

Reruns the given node.js file whenever there's a change in the current directory — avoid alt-tabbing to restart your code

Home Page: http://dtrejo.com/

License: MIT License

JavaScript 100.00%

run.js's Introduction

Install

$ npm -g install run

Usage

$ runjs yourcode.js

What does it do?

runjs will rerun server.js whenever one of the watched files is changed. It ignores files in your .gitignore.

$ runjs server.js
Watching /Dropbox/dev/server.js and all sub-directories not excluded by your .gitignore
Found & ignored file.db ; is dotfile or has ignored extension

Starting: server.js
> Listening on http://localhost:8888/

No more switching to the terminal to rerun your code. Just change a file and your code will be rerun.

This is especially nice for web-servers, as you can skip the terminal and alt-tab to the browser to see your updated code happily running.

Features

  • supports globs in .gitignore (e.g. *.log)
  • any arguments, including debug arguments, are relayed to your code
  • stdin is relayed to your code [not supported by nodemon as of 12/5/11]
  • files and directories in .gitignore are not watched, neither are dotfiles.
  • coffeescript is supported: runjs yourcode.coffee (by rockymeza)

Source at github.com/DTrejo/run.js


Screenshot of runjs

Contributors

Ordered by date of first contribution. Auto-generated on Wed Aug 08 2012 20:27:26 GMT-0700 (PDT).

run.js's People

Contributors

dtrejo avatar benjreinhart avatar asuth avatar blakmatrix avatar rockymeza avatar shanielh avatar

Watchers

James Cloos 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.