Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fp-json-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fp-json-cli

Simple cli inspired by jq

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

FP Json CLI

Simple cli inspired by jq and built to be more familier to JavaScript and Typescript developers.

fq/0.1.0

Usage:
  $ fq <query> [file]

Commands:
  <query> [file]  Run functional operations on input file or stdin
  list            List all available ops

For more info, run any command with the `--help` flag:
  $ fq --help
  $ fq list --help

Options:
  -o, --out <path>  Write the result to a file
  --no-nl           Don't add a new line at the end (default: true)
  -h, --help        Display this message
  -v, --version     Display version number

Examples:
fq "map(union(pick(email, name), project(age, meta.age)) | filter(.age > 2)" users.json

Operations

NameAlias
add
constantc
countlen
dividediv
equalseq
everyand
filter
flatMapchain
flow
getpluck
greaterThangt
greaterThanEqualsgte
identityid, i
includeshas
lessThanlt
lessThanEqualslte
map
multiplymul
not
notEqualsneq
omit
pick
projectp
range
skip
someor
subractsub
take
unionu
uniqueuniq

TODO

  • Error reporting
  • Type checking
  • Reduce/fold operation
  • Streaming parsing and serializing for large files
  • Highlight output similar to jq

Keywords

FAQs

Package last updated on 25 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc