New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ftpscout

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

ftpscout

Watch for file changes and upload files to ftp server. It can also minify .js and .css files and/or add arbitrary information at the top of the document.

0.1.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Description

ftpScout is a node.js file watching module that provides automatic ftp upload (using node-ftp module) and optional minification of .js and .css files using uglify-js and sqwish. It currently only supports ftp protocol.

It requires ftpScoutConfig.json file to work properly. You can use ftpScout's "init" method to start step by step dialog to create it.

This module is in alpha state. It should be stable, but you are strongly advised to backup any files before using it. You should do a manual backup, which is the safest. Optionally you can also use ''ftpScout backup'' method to create backup of all remote files on the watch list or use ''ftpScout watch --b'' to backup a remote file before it is being updated.

Requirements

  • node.js -- v0.8.0 or newer

Install

npm install ftpscout -g

Use

ftpScout watch [options]

Options

  • -safemode, --s - Checks that file also exists in a remote folder and is older than the one being uploaded.
  • -minify, --m - Minifys .css (using sqwish) and .js (using uglify-js) files. Keep in mind that remote file is overwriten with minified version!
  • -info, --i - Adds arbitrary information (author, contact, release date, description, link, license, etc.) from watcherConfig.json file.
  • -backup, --b - Creates a backup file before upload.

Methods

  • watch - Starts watching files.
  • add [file/files] - Adds new file(s) to watchlist.
  • remove [file/files] - Removes file(s) from watchlist.
  • init - Starts guided dialog to create and populate watcherConfig.json file.
  • list - Lists all files that are on the watchlist.
  • check - Check if files that are on the watchlist still exist.
  • backup - Creates backup of files that are on the watchlist (from remote folder).
  • help - Displays help.

Keywords

file

FAQs

Package last updated on 03 Jun 2015

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