Catalog npm
Back to packageRELEASE DETAILS

0.0.4

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
@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.37.0development
@typescript-eslint/parser
Environment
{
  "local_name": "@typescript-eslint/parser",
  "alias": false,
  "peer_metadata": null
}
5.37.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
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
4.8.3development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-HbrcWFSb4dOagaPloNm7ZFPPmN8CBOjkXVji0QRRJwl2DwPOV4Y2LoD0HhbCTr0ZU+nE/5BDa0EHLRxxGSB0Fw==",
  "shasum": "f976697ec1bafee3b846cd60eb78450ebfbf1785",
  "tarball": "https://registry.npmjs.org/0gql/-/0gql-0.0.4.tgz",
  "fileCount": 18,
  "unpackedSize": 14785,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEYCIQCNkObvNYAth6XtYqPWOrdpg9XZVXTqUo0zIlKyze0jeQIhAMWy1zev2zFkoGTAuRUsOzT0jEhXcZMN4lDfWvIyyfD3"
    }
  ],
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKaQaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpWYg//TjUZgH7bcsOiXudqR2/12DKc2jVklw0n1MU6PIvZCjc6K7ph\r\njccLazEi2YgI+ma/coxCVnBtg3mQ4oNS2Va7D+pGsZcKde2xAwvyp0vM7n9G\r\nyNsqtd0q6yCp0vAwbh5hW0TSl+Zjsvw8j0uYYBjE0qq9skGf2asM8jIflBkP\r\nn9W+5OTtMhz8+tY7j/kviV5guaRXCM0A7sPCy+E1mvvPmHG0Qf4SFSOhtqW1\r\nEpOjT8+Wq4yij/nzdgJBmQQ/17HthPoia0U3ZgRMyugyLAgDN3c3LRLcEKAW\r\n+q7pf3s6uXqwinjYSE5rftMBKD2D7wzA7eIztLYcRt93zqBP05o+JalK0O82\r\ncZ5HGQacTuhdvzS0lc7A9nAz1Gdj91zMLdA1gXs9V9IE66j3G5PSLfoeDXbe\r\nkzHxssgES8Eqk2yqGOcbizbwSkecyBWX1mS/GFEnW1VcEle8Yy/a5egVteI3\r\n12K1/fiJJ6kla+2UYT7a6mtk0S+1iFjkASV+JpNfAbkguVbK2FTJjXDS1bmW\r\n/eu1ctP00kd2tDtz8j9pSbQPWVa1TKaGSVi70bdwh0fu+Oj5uXFs26ffRptY\r\ngyDxMYIa06d+Fxabis/uEkIIedTIcKQMRBi0kQv2sQdJuAwpb33EUny3Sony\r\nne65wy/mH/QKbhINZcmP64krWacK3R+FBz0=\r\n=/ndm\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:41aae0ffe267e9fbf5f580fa37a03fc73c4cc00898f21b4feb0355c1505fac53

Other collected versions

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