
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@isthatcentered/deploy-to-ftp
Advanced tools
Deploy a folder to your ftp. Note, this is basically a specialized (typed) proxy of the awesome ftp-deploy
const deployToFTP = require("./")
const dotenv = require("dotenv")
dotenv.config()
const pathToFolderToDeploy = "./dist" // 👨🍳 You can use __dirname or process.cwd() if you want more control over the path. But you probably don't nee to
deployToFTP(pathToFolderToDeploy)({
// Where to place the files on your FTP
into: "web",
// FTP host
host: process.env.FTP_HOST,
// FTP port
port: process.env.FTP_PORT,
// FTP user
user: process.env.FTP_USER,
// FTP user password
password: process.env.FTP_PASSWORD,
// 🛑 Deletes ALL existing files at destination path (config.into) before uploading when true
cleanupExisting: true,
}).then(status => {
// 👨🍳 To keep type safety, the function never throws
if (status.type === "failure") {
console.error(status.error.message)
// 👨🍳 But if you really must you can always do it anyway
throw error
} else {
console.log(status.report) // [ 'uploaded dist/cjs/index.d.ts','uploaded dist/cjs/index.js' ],[ 'uploaded dist/esm/index.d.ts', ] ]
}
})
FAQs
Deploy a folder to your ftp
We found that @isthatcentered/deploy-to-ftp 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.