eyedact
Advanced tools
Comparing version 0.3.1 to 0.4.0
{ | ||
"name": "eyedact", | ||
"version": "0.3.1", | ||
"version": "0.4.0", | ||
"description": "Freeze-dried searches from text mind maps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -91,3 +91,4 @@ Make freeze-dried web searches using text mind-maps. | ||
* `MINDMAPFILE`: Path to text file containing concepts indented to show | ||
relationships between ideas in a knowledge domain. | ||
relationships between ideas in a knowledge domain. If set to `-`, `eyedact` | ||
will read from STDIN. | ||
* `needle`: At least one string to match against lines in the mindmap. | ||
@@ -98,2 +99,7 @@ If the needle appears inside a line, its a match. | ||
### Stdin example | ||
# Open React and Redux tutorials | ||
$ curl https://pastebin.com/raw/qNWujKhc | eyedact - tutorial -al | ||
## Writing implicit project stack documentation | ||
@@ -170,2 +176,5 @@ | ||
Use STDIN if you want to use a shared mindmap across multiple projects, | ||
such as from PasteBin as shown above. | ||
## Node API | ||
@@ -172,0 +181,0 @@ |
@@ -18,3 +18,5 @@ const {indentmonitor, IndentError} = require('indentmon'); | ||
const stream = readline.createInterface({ | ||
input: fs.createReadStream(infile), | ||
input: (infile === '-') | ||
? process.stdin | ||
: fs.createReadStream(infile), | ||
terminal: false, | ||
@@ -21,0 +23,0 @@ }); |
9862
58
191