0.0.2 • Published 12 months ago

npssh v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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.

0.0.2

12 months ago

0.0.1

12 months ago