cathode-cli
Advanced tools
Comparing version 0.8.7 to 0.8.8
{ | ||
"name": "cathode-cli", | ||
"version": "0.8.7", | ||
"version": "0.8.8", | ||
"description": "Cathode for the command line", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/brpx/cathode-cli", |
@@ -13,2 +13,3 @@ #!/usr/bin/env node | ||
// export APIURL=http://127.0.0.1:8080 | ||
var endpoint = process.env.APIURL || 'https://cathode.io'; | ||
@@ -61,2 +62,3 @@ | ||
.option('-r, --render', 'render javascript into dom (default is false)') | ||
.option('-d, --dump', 'dump dom (as seen by cathode) to local file (useful for debug)') | ||
.option('-x, --search <string>', 'search string, return probable expression') | ||
@@ -97,2 +99,3 @@ .parse(process.argv); | ||
query: program.query, | ||
dump: program.dump, | ||
render: program.render ? "yes" : "no", | ||
@@ -112,2 +115,5 @@ search: program.search | ||
} | ||
}else if(program.dump) { | ||
fs.writeFileSync("/tmp/cathode_dom.html", res.body.dom); | ||
console.log("Wrote DOM to /tmp/cathode_dom.html"); | ||
} | ||
@@ -114,0 +120,0 @@ else |
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
15816
6
125