Catalog npm
Back to packageRELEASE DETAILS

0.0.6

npm

0gql

Migrate from gql tag

Published20 Sept 2022
Direct dependencies11
Transitive dependenciesNot calculated

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.

Declared dependencies 11

Native requirements
11 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
commander
Environment
{
  "local_name": "commander",
  "alias": false,
  "peer_metadata": null
}
^9.4.0runtime
glob
Environment
{
  "local_name": "glob",
  "alias": false,
  "peer_metadata": null
}
^8.0.3runtime
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.8.3runtime
@changesets/cli
Environment
{
  "local_name": "@changesets/cli",
  "alias": false,
  "peer_metadata": null
}
2.24.4development
@types/glob
Environment
{
  "local_name": "@types/glob",
  "alias": false,
  "peer_metadata": null
}
8.0.0development
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
16.11.59development
@typescript-eslint/eslint-plugin
Environment
{
  "local_name": "@typescript-eslint/eslint-plugin",
  "alias": false,
  "peer_metadata": null
}
5.38.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
5.38.0development
eslint
Environment
{
  "local_name": "eslint",
  "alias": false,
  "peer_metadata": null
}
8.23.1development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
2.7.1development
ts-node
Environment
{
  "local_name": "ts-node",
  "alias": false,
  "peer_metadata": null
}
10.9.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-lQX3enrXnbuCk/Pe5UzKuuRtXXTe2E7Ltw+0/ML5iEoCPg8BAntdvsMqthjR2QPN8GXtu1cjrQY9GQBacKOLPQ==",
  "shasum": "06387a41bdf635f4259a91472159547b19d19c67",
  "tarball": "https://registry.npmjs.org/0gql/-/0gql-0.0.6.tgz",
  "fileCount": 18,
  "unpackedSize": 14903,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIGc3U/EeXXvdJSnbmET6k4PsgkCjSwf+RT/3/jn1VJ3QAiEAxOCY1psuGafWKzPfqg54PwQbfxa0Jx8IXyGa8q+zI7g="
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKaj8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoLwg//TvlEBeAa7QFZ56uDnfHW/Ls6F+xRRbqj1awO6bEYvQQwGJFf\r\njs3b6ItYG8US5FLTKkQfB1FVdG8U3gffhrbnBLDJixAyoHlkrvcR7Oj8rz40\r\nQgKQrdasG91djf7pPEgc8VvLTuaIyddUrOJyDUgvNORVUtEXyfY/m+p1wsx4\r\nwB/U9+hBmqNhNz/1LWbqivTdq9GtndU+UPP29v1LiuCKt0CZZvPrl8A0XFHi\r\n9Y9y/dXzIMDaX11jAWlnnRtaXPhl1BDJeV746qiAihYoqZ+Oscq7eD6krDja\r\n45UvvWxYfXGErbAi5CRGMXUIrb8H1UKgUdSJjWzLy7hB80PpeIizBG6v/WWe\r\neko2pCMNUvoQYySeuFZPSf9P8/43aYOtyXqoEy8v4ooLgDVvhU6zChbiZbLY\r\nuDOAAgM7nSJO+VTishNdoP4qzttH4fArHg1qUAFOTsIPOAILKR05jLk+8Ayt\r\nWcdRah16sLPthJuFR0i5792mx6/VPvNXuamoRfIhqlNu+eGF4a1RzsB/Xxek\r\nNFvqxVsKiQA9nSKrgaeI5UYJQ7DfmjYjTfUhskLmZ3gbMuLoUIU7Vymp9bCw\r\n4MSe/Qrmz6dYItnItngNaW+aRTFva3vBS1FhUutWJ2SfIqDIyq50xSf3qD4E\r\nsW7BRIawjCOm7zB2xW3cGtQnb1ly/4t7g5g=\r\n=tlmq\r\n-----END PGP SIGNATURE-----\r\n"
}

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_version:bbbc7eb9857c677456750391f9d423d99a0c1792d951fb9cd3c16dd673624d7e

Other collected versions

0.0.1016 Apr0.0.925 Mar0.0.813 Oct0.0.720 Sept0.0.520 Sept0.0.420 SeptView all collected versions →