🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

fsrun

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fsrun

start and restart os processes on file system watch events.

0.9.4
latest
Source
npm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

fsrun

start and restart os processes on file system watch events.

fsrun ./ [node app.js]

fsrun ./ [cargo run --example app]

fsrun ./ [dotnet build]

install

npm install fsrun -g

overview

fsrun is a simple command line tool to start and restart OS processes from file system watch events. fsrun works in a similar fashion to nodejs tools like nodemon and node-supervisor, but focuses on being able to restart any type of process.

fsrun was primiarly written as a quick / easy to install developer aid for "compile/restart on save" scenarios.

running processes

fsrun will run shell commands written within the [] brackets.

fsrun [echo hello world]

By default, fsrun will watch the current working directory.

fsrun [echo hello world]

is the same as

fsrun ./ [echo hello world]

users can explicity state which path to watch. The path given should be absolute or pathed relative to the current working directory. The path should also preceed any commands.

fsrun ../relative/path [echo hello]

fsrun c:/absolute/path/index.js [echo world]

running multiple processes

fsrun can run multiple processes. Each process is run concurrently and will be started / restarted as a group on file system changes.

fnrun ./ [echo one] [echo two] [echo three]

watching multiple paths

It is possible to watch multiple paths seperating each path with a space. The following watches ./this and ./that and echos hello.

fsrun ./this ./that [echo hello]

Keywords

restart

FAQs

Package last updated on 25 Jun 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