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

chicken-little

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chicken-little

A utility script to re-run a command on filesystem changes

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

chicken-little

WIP: do things when files change on the filesystem (re-run your test suite, for example)

Build Status

Example usage:

./node_modules/.bin/chicken -c "filesystem had changes" .

To re-run your test suite when any files change (timing how long it takes):

./node_modules/.bin/chicken -c "time npm test" .

Why? Aren't there already others?

My main use case is to re-exec my mocha test suite(s) on file changes.

I want my test suite to re-run on any changes, including templates, CSS, and client-side javascript.

If you don't like chicken-little, there are others that might work better for you:

  • nodemon
    • doesn't easily trigger on non-js/coffeescript files
    • stopped working for me
    • no tests at all
  • mocha testrunner
    • doesn't take mongoose model changes into account when it re-runs
  • node-dev
    • only works for node scripts, cannot exec random shell commands ('make test')
    • doesn't trigger on all file changes
  • supervisor
    • I like being able to npm install everything my app development depends on
    • relatively complex

I probably missed some, but it's a start.

Keywords

FAQs

Package last updated on 05 Mar 2013

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