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

hexo-deployer-ftpsync

Package Overview
Dependencies
Maintainers
8
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-deployer-ftpsync - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

lib/deployer.js

44

index.js

@@ -1,43 +0,5 @@

var ftpsync = require('ftpsync');
'use strict';
hexo.extend.deployer.register('ftpsync', function(args, callback){
if (!args.host || !args.user || args.pass == null){
var help = [
'You should argsure deployment settings in _config.yml first!',
'',
'Example:',
' deploy:',
' type: ftpsync',
' host: <host>',
' port: [port] # Default is 21',
' remote: [remote] # Default is `/`',
' user: <user>',
' pass: <pass>',
' ignore: [ignore]',
' connections: [connections] # Default is 1',
'',
'For more help, you can check the docs: ' + 'http://hexo.io/docs/deployment.html'.underline
];
/* global hexo */
console.log(help.join('\n'));
return callback();
}
ftpsync.settings = {
local: hexo.public_dir,
host: args.host,
port: args.port || 21,
remote: args.remote || '/',
user: args.user,
pass: args.pass,
connections: args.connections || 1,
ignore: args.ignore || []
};
ftpsync.log.verbose = (args.verbose || false);
if (ftpsync.settings.port > 65535 || ftpsync.settings.port < 1){
ftpsync.settings.port = 21;
}
ftpsync.run(callback);
});
hexo.extend.deployer.register('ftpsync', require('./lib/deployer'));
{
"name": "hexo-deployer-ftpsync",
"version": "0.1.1",
"version": "0.2.0",
"description": "FTP deployer for Hexo",
"main": "index",
"repository": {
"type": "git",
"url": "https://github.com/hexojs/hexo-deployer-ftpsync.git"
"main": "index.js",
"files": [
"lib/",
"index.js"
],
"scripts": {
"eslint": "eslint index.js lib test",
"test": "mocha test/index.js",
"test-cov": "nyc npm run test"
},
"repository": "hexojs/hexo-deployer-ftpsync",
"bugs": {

@@ -21,9 +27,18 @@ "url": "https://github.com/hexojs/hexo-deployer-ftpsync/issues"

"author": "Tommy Chen <tommy351@gmail.com> (http://zespia.tw)",
"license": {
"type": "MIT",
"url": "https://raw.github.com/tommy351/hexo/master/LICENSE"
"license": "MIT",
"dependencies": {
"basic-ftp": "^5.0.5"
},
"dependencies": {
"ftpsync": "^0.1.5"
"devDependencies": {
"chai": "^4.3.7",
"eslint": "^8.57.0",
"eslint-config-hexo": "^5.0.0",
"ftp-srv": "^4.6.3",
"hexo-fs": "^4.1.1",
"mocha": "^10.4.0",
"nyc": "^15.1.0"
},
"engines": {
"node": ">=14"
}
}
# FTP deployer
[![Build Status](https://img.shields.io/github/actions/workflow/status/hexojs/hexo-deployer-ftpsync/tester.yml?branch=master&label=test)](https://github.com/hexojs/hexo-deployer-ftpsync/actions?query=workflow%3ATester)
[![NPM version](https://badge.fury.io/js/hexo-deployer-ftpsync.svg)](https://www.npmjs.com/package/hexo-deployer-ftpsync)
Deploy your site via FTP.

@@ -9,2 +12,10 @@

$ npm install hexo-deployer-ftpsync --save
```
```
## Usage
See https://hexo.io/docs/one-command-deployment#FTPSync
## Warning
This application will delete files and directories on the remote server to match the local machine. Use this application in production at your own risk.
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