# upload-changes

> A simple node tool to monitor the current directory for changed files and upload automatically to a server via SSH

Latest version **0.0.4** (published 2016-12-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install upload-changes
pnpm add upload-changes
yarn add upload-changes
bun add upload-changes
```

Provides the command `upload-changes`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-12-05 |
| First published | 2016-12-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Alan Woo |
| Maintainers | alanwoo |

## Links

- npm: https://www.npmjs.com/package/upload-changes
- Repository: https://github.com/alancwoo/upload-changes
- Issues: https://github.com/alancwoo/upload-changes/issues
- npm.io page: https://npm.io/package/upload-changes

## Dependencies (7)

- [colors](https://npm.io/package/colors.md) ^1.1.2
- [config](https://npm.io/package/config.md) ^1.24.0
- [moment](https://npm.io/package/moment.md) ^2.17.1
- [chokidar](https://npm.io/package/chokidar.md) ^1.6.1
- [inquirer](https://npm.io/package/inquirer.md) ^1.2.3
- [node-ssh](https://npm.io/package/node-ssh.md) ^3.0.1
- [node-notifier](https://npm.io/package/node-notifier.md) ^4.6.1

## Recent versions

- 0.0.4 (latest) — 2016-12-05
- 0.0.3 — 2016-12-05
- 0.0.2 — 2016-12-05
- 0.0.1 — 2016-12-05

## README

# 🐔 upload-changes

This node tool monitors the current directory for changes and uploads new/modified files via ssh. It does not handle deletion of files, nor syncing of any sort. Supports notifications on upload as well (Mac Notification Center, notify-osd etc).

Built as a simple editor-agnostic way to automatically upload edited or compiled (eg via brunch or webpack) files up to a dev server.

https://www.npmjs.com/package/upload-changes

## Setup
1. Install `npm i -g upload-changes`
1. Edit config file in cwd `config/default.json`
2. Run `upload-changes`

## Configuration
Configuration is fairly self explanatory. Place in your current working directory under `config/default.json`

````
{
	"sync": {
		"host": "www.example.com",
		"port": 22,
		"user": "user",
		"remotePath": "/path/to/upload",
		"privateKeyPath": "/path/to/.ssh/id_rsa",
		"privateKeyPassPromptRequired": false
	},
	"notifications": true,
	"ignoreDotFiles": true,
	"ignored": [
	  "watch.js",
	  "readme.md",
	  ".git",
	  "node_modules",
	  "config",
	  "yarn.lock",
	  "package.json"
	]
}
````

## Notes
1. Only supports key-based auth right now
2. If you need to prompt for the private key passphrase, set `privateKeyPassPromptRequired` to `true` in the config.

---
_Source: https://npm.io/package/upload-changes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
