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

graphql2js

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql2js

Generate js files from .graphql files, so you can import them

  • 1.0.0
  • npm
  • Socket score

Version published
Weekly downloads
13
Maintainers
1
Weekly downloads
 
Created
Source

graphql2js

This script helps you convert graphql operation and schema files into JavaScript files that you can import in your project.

This is useful if you are using graphql-tag/loader in your webpack client code and want to import those same graphql files in code that is not using webpack.

For each .graphql file in the source folder it will output a .graphql.js file in the output folder.

Installation

Yarn

yarn add -D graphql2js

npm

npm install -D graphql2js

Usage

Yarn

yarn graphql2js -d src -o dist src/**/*.graphql

npx

npx graphql2js -d src -o dist src/**/*.graphql

FAQs

Package last updated on 02 May 2019

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