graphql-decoder

1.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i graphql-decoder

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

2.38 kB

Total Files

3

Last publish

Collaborators

  • cameronmccormack