html-select
Advanced tools
Comparing version 1.2.2 to 1.3.0
@@ -9,3 +9,4 @@ #!/usr/bin/env node | ||
var argv = minimist(process.argv.slice(2), { | ||
alias: { h: 'help' } | ||
alias: { h: 'help', i: 'inside' }, | ||
boolean: [ 'inside' ] | ||
}); | ||
@@ -24,2 +25,5 @@ var selector = argv._.join(' '); | ||
console.log(JSON.stringify(e)); | ||
if (argv.inside) { | ||
e.createReadStream().pipe(process.stdout); | ||
} | ||
})) | ||
@@ -26,0 +30,0 @@ ; |
@@ -1,2 +0,2 @@ | ||
usage: html-select SELECTOR | ||
usage: html-select SELECTOR OPTIONS | ||
@@ -6,1 +6,5 @@ Given a newline-separated json stream of html tokenize output on stdin, | ||
OPTIONS are: | ||
-i, --inside Print the inner html content at matching selectors. | ||
{ | ||
"name": "html-select", | ||
"version": "1.2.2", | ||
"version": "1.3.0", | ||
"description": "match a tokenized html stream with css selectors", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
52368
924
172