npssh

0.0.2 • Public • Published

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.

/npssh/

    Package Sidebar

    Install

    npm i npssh

    Weekly Downloads

    0

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    7.76 kB

    Total Files

    10

    Last publish

    Collaborators

    • windyeasy