• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 14 years ago
  • Updated over 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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).

More Repositories

1

nodaphone

Control any internet-enabled device by calling a phone number and pressing buttons! See the demo below:
JavaScript
42
star
2

node-authors

print a markdown list of authors/contributors to your git repo, including github usernames. uses node.js!
JavaScript
41
star
3

rotten

find & delete empty branches in your git repository; find unmerged branches with tons of code that needs to get into production!
JavaScript
36
star
4

json-streamify

Streaming version of `JSON.stringify` for node.js
JavaScript
24
star
5

ampline

amp up your command line — assign variables to output from common commands. a great complement to tab completion
JavaScript
18
star
6

readmetree

readmetree — display all the readme's in your current project (especially those in node_modules/*/* folders!). Great for offline coding
CSS
13
star
7

HN-Hotkeys

Adds hotkeys to Hacker News
JavaScript
12
star
8

dotfiles

DTrejo's Dotfiles
Ruby
7
star
9

favicon.js

simple javascript / node.js utility to get a website's favicon url
JavaScript
5
star
10

npmpants

Not yet launched. npmpants tests your node modules across various operating systems so you don't have to!
JavaScript
4
star
11

cooler

prints error stack traces with green for your code, red for the error message, grey for node core, and normal color for everything else
JavaScript
4
star
12

achtung-ui

Achtung is a plugin for jQuery that creates notifications similar to those produced by Growl. (Forked from version 0.3.0r6 on http://code.google.com/p/achtung-ui/)
JavaScript
4
star
13

royalty

[WORK-IN-PROGRESS] Code in luxury like only a king could afford. (boilerplate for node projects, w/ things that make your life easier all bundled in)
JavaScript
4
star
14

gss

Golden Section Search for node.js. A line search technique used to minimize or maximize the output a function, also known as `argmax`.
JavaScript
4
star
15

colorslice

Color picker app. Drag and drop images from your desktop. Click to capture a color.
JavaScript
3
star
16

neo-proxy

man-in-the-middle (mitm) proxy that impersonates the target site and allows you to modify the target's http response before sending it back to the client.
JavaScript
3
star
17

npmbench

benchmark each release of a node module published on npm against each other release using a small command line tool
JavaScript
3
star
18

pbpastehtml

extract html from your clipboard. allows you to get html from pbpaste.
JavaScript
2
star
19

csdug.cs.brown.edu

The Brown Computer Science Undergraduate Group's Website
PHP
2
star
20

down-sound

Download top free songs from last.fm as ranked by NextBigSound.com
JavaScript
2
star
21

node-report

reports npm's npat test results to npat.iriscouch.com, exposing npat test results as a service to the community
JavaScript
2
star
22

engineerworth.com

How much is an engineer's time worth?
JavaScript
2
star
23

hakeru

realtime chat with tasks
JavaScript
2
star
24

urn

do offline `npm install`s from your npm cache
JavaScript
2
star
25

npmbro

npmbro — an irc bot that runs npm commands for you while you bro out. See it in action #node.js on freenode (http://webchat.freenode.net?randomnick=1&channels=node.js&uio=d4)
JavaScript
2
star
26

jqserve

Modifies a page using jquery before serving it. No more templating languages! This has pretty much been superseded by weld: https://github.com/hij1nx/weld :)
JavaScript
1
star
27

everyintro

HTML
1
star
28

book

My 2nd book
1
star
29

dtrejo.github.io

https://dtrejo.com homepage
HTML
1
star
30

report

Allows `npm install foo` with `npm config set npat true` to report test results to http://npat.iriscouch.com/.
JavaScript
1
star
31

browserify-watcher

programmatically watch browserify bundles and remake them upon any changes
JavaScript
1
star
32

replywrite

https://replywrite.com
1
star
33

browncomputerscience.com

Shell
1
star
34

hannatrejo.com

JavaScript
1
star
35

peerimage

playing around with peerjs, sending images about
JavaScript
1
star
36

streak-view

An alternative view of streak's pipeline dashboard that makes it easy to open email conversations in new tabs
HTML
1
star
37

everysend.com

https://everysend.com
1
star
38

engineeroverflow.com

HTML
1
star
39

juans.org

http://juans.org
CSS
1
star
40

jotan

stream json over tcp using netstrings using node
JavaScript
1
star
41

fuzzyblanket

adds coverage reports to your project by invoking `fuzzyblanket`. powered by blanket and {mocha, any test runner supported by blanket}
JavaScript
1
star
42

critical-tachyons

Given an html file, inlines only the tachyons classes used by the file. A simpler version of ghub.io/juice
HTML
1
star