![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.
Simply a module that kicks your folder out the door and up onto your FTP server of choice. If you don't like the word "kick", then you're allowed to silently replace it with "deploy" in your mind.
$ npm install ftpkick
This module was heavily inspired by some code written by @jarl-dk in CoffeeScript.
var ftpkick = require('ftpkick');
var args = {
host: 'mytesthost',
user: 'developer',
password: 'supersecret'
};
ftpkick.connect(args).then(function(kicker) {
console.log('Uploading to /myfolder');
kicker.kick('./build', '/myfolder').then(function() {
console.log('Successfully uploaded to /myfolder');
kicker.disconnect()
}, function(e) {
console.log('Failed to upload', e);
});
kicker.on('uploaded', function(file) {
console.log('Uploaded file: ', file);
});
kicker.on('uploading', function(file) {
console.log('Uploading file: ', file);
});
kicker.on('savedcheckfile', function(file) {
console.log('Saved checkfile with path: ', file);
});
});
ftpkick.connect(parameters) -> Promise
Connection parameters
are directly passed on to
the ftp package, so go look there for docs.
The .connect
function returns a promise
of a Connection
object.
Connection#kick(localDirectory, targetDirectory, checkfile) -> Promise
As you might've guessed, the localDirectory
is the directory you want to kick
while the targetDirectory
is the target where all your files hopefully will
land.
The checkfile
parameter, is an optional filename where the ctime
of all
uploaded files will be stored. If provided ftpkick
will check against this
file to make sure that it only uploads updated files. The checkfile is stored
in the OS' temporary directory.
The method returns a promise, that will resolve on success and reject on failure
Connection#disconnect()
Call this when you want to end the FTP connection (after a kick
)
FAQs
A module that will literally kick all your files to a remote FTP server
The npm package ftpkick receives a total of 0 weekly downloads. As such, ftpkick popularity was classified as not popular.
We found that ftpkick demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.