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

bewitch

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bewitch

File watch and synchronizer

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

Bewitch

Watches local directories and syncs the files to a local or remote location when contents have changed.

Installation

npm -g i bewitch

Usage

Simple is as simple does.

bewitch path/to/source user@host:/path/to/destination

Of course bewitch also allows multiple routes.

bewitch -c options.json

options.json:

{
	"ignore" : ".git",
	"routes" : {
		"path/to/foo" : "user@host:/path/to/foo",
		"path/to/bar" : "user@host:/path/to/bar"
	}
}

When you need fine-grained control, bewitch is there for you.

options.json:

{
	"ignore" : [ ".git", ".svn" ],
	"include" : "public",
	"exclude" : "test/**/*.md",
	"routes" : [{
		"source" : "path/to/bar",
		"destination" : "user@host:/path/to/bar"
	}, {
		"source" : "path/to/foo",
		"destination" : "user@host:/path/to/foo",
		"ignore" : ".*.sw*",
		"include" : [ "public/test.php", "*.js" ],
		"exclude" : "public/sass"
	}]
}

Relative paths are assumed to be relative to the config file.

Requirements

To run bewitch properly, you'll need both ssh and rsync. Windows people can get them from Cygwin. Mac and Linux people should already have them.

In addition, you'll need ssh access to the remote location if you want to sync to it!

Keywords

FAQs

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