Catalog npm
PACKAGE EXPLORERView in registry

0gql

npm

Migrate from gql tag

Versions collected9
Direct dependencies11From release 0.0.10
Last observed20 Oct, 17:40 UTC

README

Current package documentation

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 9

Collected releases
VersionPublishedDirect dependenciesOpen version
0.0.10Registry latest16 Apr 202311
0.0.925 Mar 202311
0.0.813 Oct 202211
0.0.720 Sept 202211
0.0.620 Sept 202211
0.0.520 Sept 202211
0.0.420 Sept 202211
0.0.319 Sept 202211
0.0.219 Sept 202211

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
eddeee888/nogql

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 17:40 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:0ce1b24ff46f254922631092c5b26b738e070648a5e25bba06952f3f4e06f686