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

ftp-deploy

Package Overview
Dependencies
Maintainers
2
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftp-deploy - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

.vscode/settings.json

85

package.json
{
"name": "ftp-deploy",
"version": "1.2.1",
"author": "Simon Hampton (was Rick Bergfalk)",
"description": "Ftp a folder from your local disk to an ftp destination. Does not delete from destination directory. Derived from grunt-ftp-deploy",
"keywords": [
"ftp",
"deploy"
],
"license": "",
"dependencies": {
"jsftp": "1.x.x",
"async": "2.x.x",
"minimatch": "3.0.3",
"read": "1.0.7"
},
"repository": {
"type": "git",
"url": "git://github.com/rickbergfalk/ftp-deploy"
},
"bugs": {
"url": "https://github.com/rickbergfalk/ftp-deploy/issues"
},
"engines": {
"node": ">=4"
},
"contributors": [
{
"name": "Ondrej",
"url": "https://github.com/der-On"
"name": "ftp-deploy",
"version": "1.2.2",
"author": "Simon Hampton (was Rick Bergfalk)",
"description": "Ftp a folder from your local disk to an ftp destination. Does not delete from destination directory. Derived from grunt-ftp-deploy",
"keywords": [
"ftp",
"deploy"
],
"license": "",
"dependencies": {
"jsftp": "2.0.x",
"async": "2.x.x",
"minimatch": "3.0.4",
"read": "1.0.7"
},
{
"name": "keyle",
"url": "https://github.com/keyle"
"repository": {
"type": "git",
"url": "git://github.com/simonh1000/ftp-deploy"
},
"bugs": {
"url": "https://github.com/simonh1000/ftp-deploy/issues"
},
"engines": {
"node": ">=4"
},
"contributors": [{
"name": "Ondrej",
"url": "https://github.com/der-On"
},
{
"name": "keyle",
"url": "https://github.com/keyle"
}
],
"scripts": {
"lint": "xo",
"lint-fix": "xo --fix",
"test": "node test/test.js"
},
"main": "ftp-deploy",
"devDependencies": {
"xo": "^0.18.2"
}
],
"scripts": {
"lint": "xo",
"lint-fix": "xo --fix",
"test": "node test/test.js"
},
"main": "ftp-deploy",
"devDependencies": {
"xo": "^0.18.1"
}
}
}
# ftp-deploy
Ftp a folder from your local disk to a remote ftp destination. Does not delete from destination directory.
A Node.js package to help with deploying code. Ftp a folder from your local disk to a remote ftp destination. Does not delete from destination directory.
A Node.js package.
## Installation
```js
npm install ftp-deploy
```
(Need sftp? Check out [sftp-upload](https://github.com/pirumpi/sftp-upload))

@@ -11,6 +15,14 @@

I've taken over from Rick and will start working on the deprecation warnings, and the 'delete remote directory' requests.
I've taken over from Rick in May 2017, and will start working on the deprecation warnings, and the 'delete remote directory' requests.
## Usage
I create a file - e.g. deploy.js - in the root of my source code and add a script to its package.json so that I can `npm run deploy`.
```json
"scripts": {
"deploy": "node deploy"
},
```
The most basic usage (stops uploading when an error occurs):

@@ -67,15 +79,8 @@

```
## Testing
I use proftpd to create a simple ftp server at test/remote and then run the script at `node ./test/test`
## Installation
```js
npm install ftp-deploy
```
## License
MIT

@@ -7,27 +7,27 @@ const path = require('path');

const config = {
username: 'simon',
password: '', // Optional, prompted if none given
host: 'localhost',
port: 21,
localRoot: path.join(__dirname, 'test-root'),
remoteRoot: path.join(__dirname, 'ftpsite'),
exclude: ['.git', '.idea', 'tmp/*']
username: 'simon',
password: '', // Optional, prompted if none given
host: 'localhost',
port: 21,
localRoot: path.join(__dirname, 'local'),
remoteRoot: path.join(__dirname, 'remote'),
exclude: ['.git', '.idea', 'tmp/*']
};
ftpDeploy.on('uploaded', data => {
console.log('uploaded:');
console.log(data);
console.log('uploaded:');
console.log(data);
});
ftpDeploy.on('uploading', data => {
console.log('uploading');
console.log(data);
console.log('uploading');
console.log(data);
});
ftpDeploy.deploy(config, err => {
if (err) {
console.log(err);
} else {
console.log('finished');
}
});
if (err) {
console.log(err);
} else {
console.log('finished');
}
});
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