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

0gql

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

0gql

Migrate from gql tag

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
27
increased by92.86%
Maintainers
1
Weekly downloads
 
Created
Source

0gql

Codemod tool to detect gql tag templates and extract them to separate files

Usage

By default, this codemod finds all gql tag usage from graphql-tag imports of a given pattern. Then, it analyses and puts GraphQL content and fragments into a separate .graphql file.

# This codemods all .ts and .tsx files under path/to/files that import and use gql tag
$ npx 0gql@latest "path/to/files/*.ts*"

There are other options as well. Check the full options in the Options section.

Options

Usage: 0gql [options] <file pattern>

Options:
  -V, --version                       output the version number
  -e, --extension <target extension>  extension of the generated file/s (default: ".graphql")
  -m, --modules <gql tag module/s>    module/s where gql tag are imported from. Comma separated (default: "graphql-tag")
  -r, --remove                        remove original gql tag usage
  -h, --help                          display help for command

FAQs

Package last updated on 16 Apr 2023

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