npssh
v0.0.2
Published
A node library that pushes files the remote server via the ssh.
Downloads
1
Readme
npssh
- A node library that pushes files the remote server via the ssh.
- The library is based on node-ssh.
Installation
pnpm add npssh -D
And create .npssh.cjs
in your project root:
module.exports = {
host: "localhost",
username: "root",
password: "123456", // or privateKeyPath: "/path/to/private/key"
from: "./dist",
to: "/root/dist",
isDeleteRemoteFiles: true, // default: false
}
Add script for package.json:
For example:
"scripts": {
"push": "npssh"
}
License
It is MIT.