Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

run

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

run

Reruns the given file whenever a file in the current working dir subtree is changed.

  • 1.5.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
47K
decreased by-14.9%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 26 Dec 2023

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