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

lyftp

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lyftp - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

11

core.js
let path = require('path')
let fs = require('fs')
/**
* [Core description]
* @param {[type]} ftp [description]
* @param {[type]} rootPath [description]
*/
function Core(ftp, rootPath){

@@ -10,2 +15,8 @@ this.ftp = ftp

// 获取文件夹内所有文件的路径
/**
* [getDirList description]
* @param {[type]} dir [description]
* @param {Array} [arr=[]] [description]
* @return {[type]} [description]
*/
function getDirList(dir, arr = []){

@@ -12,0 +23,0 @@ let dirpath = path.resolve(dir)

10

index.js

@@ -68,3 +68,6 @@ #!/usr/bin/env node

lftp.put(localPath, remotePath)
.then(msg => { console.log(msg); } )
.then(msg => {
console.log(msg);
process.exit()
} )
})

@@ -79,3 +82,6 @@ })

lftp.put(localPath, remotePath)
.then(msg => { console.log(msg); } )
.then(msg => {
console.log(msg);
process.exit()
} )
})

@@ -82,0 +88,0 @@ })

2

package.json
{
"name": "lyftp",
"version": "1.0.3",
"version": "1.0.4",
"description": "lyftp is ftp package, you can upload an entire folder or a file",

@@ -5,0 +5,0 @@ "main": "index.js",

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