Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

graphql-tokenizer

yoshuawuyts9MIT1.0.0

Tokenize a graphql schema

graphql, parse, tokenize

readme

graphql-tokenizer stability

npm version build status downloads js-standard-style

Tokenize a graphql schema.

Usage

var string = `
  type Film {
    title: String
  }

  type Query {
    # Fetch the film by id
    film(id: Int): Film
  }
`

  var res = tokenize(Buffer.from(schema))

API

token = tokenize(string)

Tokenize a graphQL string.

See Also

License

MIT