Update README.md

pull/251/head
Anton Medvedev 1 year ago
parent 6c372e99e2
commit f3c3389900
No known key found for this signature in database

@ -9,19 +9,19 @@ npm i -g fx
Or use **npx**:
```sh
cat file.json | npx fx .param
cat file.json | npx fx .field
```
Or use **node**:
```sh
cat file.json | node <(curl -s https://fx.wtf) .param
cat file.json | node <(curl -s https://fx.wtf) .field
```
Or use **deno**:
```sh
cat file.json | deno run https://fx.wtf .param
cat file.json | deno run https://fx.wtf .field
```
## Usage
@ -73,6 +73,14 @@ Fx works with promises.
echo '"https://medv.io/*"' | fx 'fetch' '.text()'
```
When using the **-r** or **--raw** flag, the input will be treated as a raw string
instead of JSON. This can be useful when working with non-JSON input data, such as
plain text or CSV data.
```sh
ls | fx -r '.trim().split("\n")'
```
## License
[MIT](../LICENSE)

Loading…
Cancel
Save