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

ftp-deploy-package

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ftp-deploy-package

Deploy an npm package with its production dependencies through FTP

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Goal

This package is made to deploy an npm package to a remote server through FTP. It copies the package files and package.json to a temporary directory where the production dependencies are installed. ftp-deploy-package then uploads all the useful files to the remote server.

Installation

Add this package to your devDependencies: npm install --save-dev fetch-github-app.

Usage

ftp-deploy-package package is a wrapper around ftp. You can thus pass it all the options accepted by its connect method.

CLI

  1. Add "deploy": "ftp-deploy-package" to your package.json scripts
  2. Display the command help with: npm run deploy

Example:

npm run deploy -- --path site/wwwroot/app --host your.host.com --user "deploy\user"

Node.js

const ftpDeployPackage = require('ftp-deploy-package');

// Path to the directory containing your package.json.
const packageDirectory = 'local/path';

const ftpConfig = {
  host: 'your.host.com',
  path: 'site/wwwroot/app',
  user: 'deploy\\user'
};

ftpDeployPackage(packageDirectory, ftpConfig).then(() => {
  console.log('deploy successful');
});

Testing

To test the package on your machine:

  1. npm install
  2. Create a .env file respecting the dotenv guidelines and add the environment variables mentioned by index.test.js.
  3. npm test

Keywords

FAQs

Package last updated on 23 Jun 2017

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

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