diff --git a/README.md b/README.md index 6a797fe..300dff2 100644 --- a/README.md +++ b/README.md @@ -6,11 +6,11 @@ ![npm](https://img.shields.io/npm/v/hivessh.svg?style=plastic&logo=npm&color=red) - + HiveSsh simplifies SSH2 connections via promise-based task execution on Linux servers with built-in server utilities and powerful command execution functions. @@ -100,7 +100,7 @@ console.log("Home dir files:\n", homeDirFiles.out) Get the hosts public ip address: ```ts // check if curl command exists -const curlExists = await myHost.exists("curl") +const curlExists = await myHost.cmdExists("curl") if(!curlExists){ myHost.close() throw new Error("Curl is not installed on: " + myHost.settings.id) @@ -123,7 +123,7 @@ console.log("Etc files: ", etcDirFiles.out) Also a git example: ```ts // check if git command exists -const gitExists = await myHost.exists("git") +const gitExists = await myHost.cmdExists("git") if(!gitExists){ myHost.close() throw new Error("Git is not installed on: " + myHost.settings.id) diff --git a/package-lock.json b/package-lock.json index 1e68a7a..c1b75bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hivessh", - "version": "1.0.7", + "version": "1.0.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "hivessh", - "version": "1.0.7", + "version": "1.0.8", "license": "MIT", "os": [ "!win32" diff --git a/package.json b/package.json index 34f5642..39fad95 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hivessh", - "version": "1.0.7", + "version": "1.0.8", "description": "HiveSsh simplifies SSH2 connections via promise-based task execution on Linux servers with built-in server utilities and powerful command execution functions", "main": "dist/index.js", "type": "module",