0.0.2 • Published 1 year ago

npssh v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.1

1 year ago