graphql-tokenizer 
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.