1.0.1 • Published 2 years ago

graphql-decoder v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

GraphQL URL Decoder

Installation

npm i graphql-decoder

Usage

This project is used for extracting and formatting a GraphQL query from a full request URL.

For example:

Input:

npx graphql-decoder https://example.com/%7B%20test%20%7B%20example%20%7D%20%7D/more-stuff

Output:

{
  test {
    example
  }
}

Command line arguments

By specifying a relative file path with the --outputFile named argument, the formatted GraphQL query can be saved to a file, e.g.

npx graphql-decoder https://example.com/%7B%20test%20%7B%20example%20%7D%20%7D/more-stuff --outputFile query.graphql
1.0.1

2 years ago

1.0.0

2 years ago