![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ftp-deploy-package
Advanced tools
Deploy an npm package with its production dependencies through FTP
This package is made to deploy an npm package to a remote server through FTP. It copies the package source files - the ones included in the archive generated by npm pack - to a temporary directory where the production dependencies are installed. ftp-deploy-package
then uploads all the useful files to the remote server.
Add this package to your devDependencies: npm install --save-dev ftp-deploy-package
.
We were using this package to deploy Azure Functions as detailed in this blog post. Azure Functions can now be deployed with a simple zip push. The same feature is available with AWS Lambda. It means we don't need this npm package anymore so we will stop maintaining it.
ftp-deploy-package
package is a wrapper around ftp. You can thus pass it all the options accepted by its connect
method.
"deploy": "ftp-deploy-package"
to your package.json
scripts
npm run deploy
Example:
npm run deploy -- --path site/wwwroot/app --host your.host.com --user "deploy\user"
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');
});
To test the package on your machine:
npm install
.env
file respecting the dotenv guidelines and add the environment variables mentioned by index.test.js
.npm test
FAQs
Deploy an npm package with its production dependencies through FTP
The npm package ftp-deploy-package receives a total of 0 weekly downloads. As such, ftp-deploy-package popularity was classified as not popular.
We found that ftp-deploy-package demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.