page-data-cli
Advanced tools
Comparing version 0.0.8 to 0.0.9
17
cli.js
@@ -14,3 +14,3 @@ #!/usr/bin/env node | ||
Usage | ||
$ page <command> <url> | ||
$ page <command> <url> <options> | ||
@@ -22,2 +22,5 @@ Command | ||
tls Options | ||
--servername -n, Servername | ||
Examples | ||
@@ -27,3 +30,7 @@ $ page state http:\/\/example.com | ||
$ page meta http:\/\/example.com | ||
`); | ||
`, { | ||
alias: { | ||
n: 'servername' | ||
} | ||
}); | ||
@@ -134,3 +141,7 @@ const command = cli.input[0], | ||
case 'tls': | ||
page.tls(url) | ||
let options = {} | ||
if (cli.flags['servername']) { | ||
options['servername'] = cli.flags['servername'] | ||
} | ||
page.tls(url, options) | ||
.then(data => { | ||
@@ -137,0 +148,0 @@ tlsStout(data); |
{ | ||
"name": "page-data-cli", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "simple page data get client tool cli", | ||
@@ -5,0 +5,0 @@ "main": "cli.js", |
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
5735
142