Skip to content

Commit be76e22

Browse files
Fix broken example in readme
1 parent f96d69a commit be76e22

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
## What is this?
77

8-
It's a tool designed for being used in the command line to process streams or files.
8+
It's a tool designed for use in the command line to process streams or files.
99
If you're a data scientist or hobbyist and find yourself working with JSON or CSV files a lot, but don't have the time or will to learn how to use `jq`, `awk`, `cut`, `tr`, `grep`, or `csvtool`, this is what you need!
1010

11-
**Note**: JSON support is currently much more developed than CSV, though both formats are usable.
11+
**Note**: JSON support is currently much more developed than CSV, though both formats are usable.
1212
**Note 2**: Since this is driven by NodeJS and not buffered by line (due to JSON / CSV parsing), **avoid** processing files larger than a Gigabyte or so if you value your memory and CPU cycles.
1313

1414
**Features**:
@@ -29,7 +29,7 @@ This will make the `nn` command available globally.
2929
Use the command either with a file or via shell pipe
3030

3131
- `nn ./fruits.json "data = data.filter(fruit => fruit.type === 'citrus')"`
32-
- `cat ./fruits.json | "data = data.filter(fruit => fruit.type === 'citrus')"`
32+
- `cat ./fruits.json | nn "data = data.filter(fruit => fruit.type === 'citrus')"`
3333

3434
The commands accepts the input and a string of JS code that is used to process the data.
3535
The file or STDIN content is made available as the `data` variable, after being automatically turned into a JS object or array if the input file is deteced as being a JSON or CSV file respectively.

0 commit comments

Comments
 (0)