graphql-formatter

simple graphql formatter

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
graphql-formatter
1.0.34 years ago4 years agoMinified + gzip package size for graphql-formatter in KB

Readme

graphql-formatter
A simple graphql formatter
Tip: it will keep structure of source code

installation

npm install graphql-formatter

usage

import { format } from 'graphql-formatter'

const gql = `
type User{
id:ID!
				name: String
}
`

const result = format(gql)
/*
result is:

type User {
	id: ID!
	name: String
}

*/