Socket
Socket
Sign inDemoInstall

observar

Package Overview
Dependencies
48
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    observar

Watch and act! - Observar is a simple file watcher and command executor


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
1.01 MB
Created
Weekly downloads
 

Readme

Source

npm

Watch and act! - observar is a simple file watcher and command executor that helps you during development.

Install

Install observar globally using npm:

npm install observar -g

Usage

Once the installation is done, you can run the command inside your project's directory and set the npm command you want to execute on file changes.

observar -s my_command

By default observar will watch your current directory but you can also change this setting:

Single folder

observar folder_name -s my_command

Multiple folders

observar folder_name folder2_name -s my_command

Glob Pattern e.g. src/**.js

observar glob_pattern -s my_command

If you want to ignore specific files, directories, etc. add the --ignore or -i argument.

observar folder_name -s my_command -i folder_name

Finally, run this command to see a list of all available options:

observar --help

Example Usage

$ observar src/**.js -s format-lint -i dist/

Keywords

FAQs

Last updated on 27 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc