0.5.2 • Published 4 years ago

fx-jsy v0.5.2

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

fx-jsy: fx with JSY syntax dialect

Combining the excellent fx utility from Anton Medvedev with JSY syntax dialect.

Documentation

See the fx documentationall the hard work was done by Anton Medvedev anyway!

Use

$ npm install -g fx-jsy
$ echo '[3, 4, 5]' | npx fx-jsy '.map @ x => x ** x'

[
  27,
  256,
  3125
]
$ fx-jsy .dependencies .fx < package.json
^3.0.3

A more complex example converting JSON to CSV:

$ curl https://jsonplaceholder.typicode.com/posts | fx-jsy \
    '[ Object.keys(this[0]) ].concat @ this.map @ ea => Object.values(ea)' \
    '.map @ ea => ea.map @ val => JSON.stringify(val)' \
    '.map @ ea => ea.join @ `,`' \
    '.join @ `\n`' \
    > test.csv

License

MIT

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

5 years ago

0.2.0

5 years ago

0.1.0

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago