telnet-client
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -38,2 +38,3 @@ // Node.js Telnet client | ||
self.echoLines = (typeof opts.echoLines !== 'undefined' ? opts.echoLines : 1) | ||
self.stripShellPrompt = (typeof opts.stripShellPrompt !== 'undefined' ? opts.stripShellPrompt : true) | ||
self.pageSeparator = (typeof opts.pageSeparator !== 'undefined' | ||
@@ -204,3 +205,3 @@ ? opts.pageSeparator : '---- More') | ||
// remove prompt | ||
telnetObj.cmdOutput.pop() | ||
if (telnetObj.stripShellPrompt) telnetObj.cmdOutput.pop() | ||
@@ -207,0 +208,0 @@ telnetObj.emit('responseready') |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"main": "./lib/telnet-client.js", | ||
@@ -11,0 +11,0 @@ "engine": "node >= 0.10.29", |
@@ -135,2 +135,3 @@ [![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/mkozjak/node-telnet-client/blob/master/LICENSE) | ||
* `echoLines`: The number of lines used to cut off the response. Defaults to 1. | ||
* `stripShellPrompt`: Whether shell prompt should be excluded from the results. Defaults to true. | ||
* `pageSeparator`: The pattern used (and removed from final output) for breaking the number of lines on output. Defaults to '---- More'. | ||
@@ -137,0 +138,0 @@ * `debug`: Enable/disable debug logs on console. Defaults to false. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19586
296
201