{"name":"graphql-language-service","version":"2.4.0-alpha.4","keywords":["graphql","graphql-language-service"],"license":"MIT","_id":"graphql-language-service@2.4.0-alpha.4","maintainers":[{"name":"ags-","email":"agomezs@fb.com"},{"name":"asiandrummer","email":"asiandrummer@gmail.com"},{"name":"kassens","email":"jkassens@fb.com"},{"name":"leebyron","email":"lee@leebyron.com"},{"name":"lostplan","email":"sol@twitter.com"},{"name":"mgadda","email":"mgadda@gmail.com"},{"name":"schickling","email":"schickling.j@gmail.com"},{"name":"wincent","email":"greg@hurrell.net"}],"contributors":[{"name":"Hyohyeon Jeong","email":"asiandrummer@fb.com"},{"url":"http://leebyron.com/","name":"Lee Byron","email":"lee@leebyron.com"}],"homepage":"https://github.com/graphql/graphiql/tree/master/packages/graphql-language-service#readme","bugs":{"url":"https://github.com/graphql/graphiql/issues?q=issue+label:language-service"},"bin":{"graphql":"bin/graphql.js"},"dist":{"shasum":"a986597fc51a43cdf9fc386b7444320714df30cf","tarball":"http://registry-npm.ywwl.com/graphql-language-service/download/graphql-language-service-2.4.0-alpha.4.tgz","fileCount":13,"integrity":"sha512-fXgu2jwmOUEAqUg0WeTHKydnIuIWIKcnSPJqTwZWiOOyA5NT0Oey/hykJyd7Zw8SnKj0f1h3+w3TMy1RgdaOTw==","signatures":[{"sig":"MEUCIQDUPO09tdCcP8MUP2IJTAkJXHWtcSNKwsxdr+LVtnM2AAIgez9uo8R38dgkWDSDSxi2i8tCoawpaQqSkwtpsay9DRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29982,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJehoyqCRA9TVsSAnZWagAA+YQP/0yZqP39YAm4xTO+Adgo\nQ8z30ra8CZ1fML2WaXv7QvGt+iZ6Qvlbskx92IeMmMJRETuI9H82Ao7McIS3\nj/oAp3XZ3lTM835/MLenxk+rjQNYI6GKPp8kwU8DOikgIFi4GhPnR0jC06Hp\nimb90+Njcx5JokUKJItnxaIeGozlNJBBde0h+1i/X5dAW5P+yJ2M4Igfn8Sd\n1WXoZZQvY2meiTuYNoDUTXPIGxG6hp7Qiu5Nr+M4rNgbfeQXOmE0vFOhUTM7\n+v4VvpDDVjjktEhhZ2u9eHISh6XKUVE61whEPOpTYkpR1mTXIchjEPTujMxT\n2jXXISEGgkTqtEYD9tM8ZpxytD2zTWWvVztCjsYXFiFkjx+1Ane0Py+8Wutx\n6e6E2J3Y5aKVmsv+nskLKmaVC7tt57rxfwpSwxCHPEdO8PxbjiNAHxhmaR6P\nHW0zbukS+cYPh9vX/wIvMsW1Rmh6q+EMfHJajLNPN2s5jqa2sYQSDc+H3tKW\nl+/KLTqy+4YmErnA2rluJjfNmAfDA5DSME3kQ1D6QWeiRSmRvic8sVZ8Lk70\n8I9QNbIeF3GnBG7yfScKm7JWFV7AndjvdLsPOqOa2uF7KGmQXUZRsB5hn5QY\neh+6oNl1KFEMd5SZP90IrT3mfghr+Irgwva1VWdqUVn3pQUZvOo/Pw9CBCe3\n3EXw\r\n=c2IZ\r\n-----END PGP SIGNATURE-----\r\n","size":8291,"noattachment":false,"key":"/graphql-language-service/-/graphql-language-service-2.4.0-alpha.4.tgz"},"readme":"# graphql-language-service\n\n> Note: This package will soon be renamed to graphql-language-service-cli\n\n[![NPM](https://img.shields.io/npm/v/graphql-language-service.svg)](https://npmjs.com/graphql-language-service)\n![npm downloads](https://img.shields.io/npm/dm/graphql-language-service?label=npm%20downloads)\n![Snyk Vulnerabilities for npm package](https://img.shields.io/snyk/vulnerabilities/npm/codemirror-graphql)\n[![License](https://img.shields.io/npm/l/graphql-language-service.svg?style=flat-square)](LICENSE)\n\n_We welcome your feedback and suggestions._\n\nGraphQL Language Service provides an interface for building GraphQL language services for IDEs.\n\nPartial support for [Microsoft's Language Server Protocol](https://github.com/Microsoft/language-server-protocol) is in place, with more to come in the future.\n\nSupported features include:\n\n- Diagnostics (GraphQL syntax linting/validations) (**spec-compliant**)\n- Autocomplete suggestions (**spec-compliant**)\n- Hyperlink to fragment definitions and named types (type, input, enum) definitions (**spec-compliant**)\n- Outline view support for queries\n\n## Installation and Usage\n\n### Dependencies\n\nAn LSP compatible client with it's own file watcher, that sends watch notifications to the server.\n\n**DROPPED**: GraphQL Language Service no longer depends on [Watchman](https://facebook.github.io/watchman/)\n\n### Installation\n\n```\ngit clone git@github.com:graphql/graphql-language-service.git\ncd {path/to/your/repo}\nnpm install ../graphql-language-service\n```\n\nAfter pulling the latest changes from this repo, be sure to run `yarn run build` to transform the `src/` directory and generate the `dist/` directory.\n\nThe library includes a node executable file which you can find in `./node_modules/.bin/graphql.js` after installation.\n\n### GraphQL configuration file (`.graphqlrc.yml`)\n\nCheck out [graphql-config](https://graphql-config.com/docs/introduction)\n\nThe graphql features we support are:\n\n- `customDirectives` - `['@myExampleDirective']`\n- `customValidationRules` - returns rules array with parameter `ValidationContext` from `graphql/validation`;\n\n### Using the command-line interface\n\nThe node executable contains several commands: `server` and a command-line language service methods (`validate`, `autocomplete`, `outline`).\n\nImproving this list is a work-in-progress.\n\n```\nGraphQL Language Service Command-Line Interface.\nUsage: bin/graphql.js <command> <file>\n    [-h | --help]\n    [-c | --configDir] {configDir}\n    [-t | --text] {textBuffer}\n    [-f | --file] {filePath}\n    [-s | --schema] {schemaPath}\n\n\nOptions:\n  -h, --help        Show help                                          [boolean]\n  -t, --text        Text buffer to perform GraphQL diagnostics on.\n                    Will defer to --file option if omitted.\n                    Overrides the --file option, if any.\n                                                                        [string]\n  -f, --file        File path to perform GraphQL diagnostics on.\n                    Will be ignored if --text option is supplied.\n                                                                        [string]\n  --row             A row number from the cursor location for GraphQL\n                    autocomplete suggestions.\n                    If omitted, the last row number will be used.\n                                                                        [number]\n  --column          A column number from the cursor location for GraphQL\n                    autocomplete suggestions.\n                    If omitted, the last column number will be used.\n                                                                        [number]\n  -c, --configDir   Path to the .graphqlrc.yml configuration file.\n                    Walks up the directory tree from the provided config\n                    directory, or the current working directory, until a\n                    .graphqlrc is found or the root directory is found.\n                                                                        [string]\n  -s, --schemaPath  a path to schema DSL file\n                                                                        [string]\n\nAt least one command is required.\nCommands: \"server, validate, autocomplete, outline\"\n```\n","gitHead":"c4d82b0e5263e9d516bf28f423d321d81a13356a","_npmUser":{"name":"acao","email":"rikki.schulte@gmail.com"},"repository":{"url":"git+ssh://git@github.com/graphql/graphiql.git","type":"git"},"_npmVersion":"lerna/3.20.2/node@v13.12.0+x64 (linux)","description":"An interface for building GraphQL language services for IDEs","directories":{},"_nodeVersion":"13.12.0","dependencies":{"yargs":"^15.3.1","graphql-config":"3.0.0-rc.0","@babel/polyfill":"7.8.7","graphql-language-service-utils":"^2.4.0-alpha.4","graphql-language-service-server":"^2.4.0-alpha.4","graphql-language-service-interface":"^2.4.0-alpha.4"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^0.12.0 || ^0.13.0 || ^14.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-language-service_2.4.0-alpha.4_1585876138136_0.7184617452477986","host":"s3://npm-registry-packages"},"publish_time":1585876138283,"_cnpm_publish_time":1585876138283,"dist-tags":{"alpha":"5.1.7-alpha.0","beta":"6.0.0-beta.1","canary":"5.5.0-canary-be24c1cc.0","latest":"6.0.1","next":"3.0.2-alpha.3","rc":"6.0.0-rc.1"}}