{"bugs":{"url":"https://github.com/redhat-developer/yaml-ast-parser/issues"},"dist":{"shasum":"1492a3ad85a716e59db956583675614a41681cfb","tarball":"https://registry.npmjs.org/yaml-language-server-parser/-/yaml-language-server-parser-0.1.1-e57e0a7.0.tgz","fileCount":158,"integrity":"sha512-lsrDdvJO6JuXj488NB6NTF/M5sjGUgWcf4rsu+CTNVKMkBkUPd2xGBLKpvOZRD2M0pBo1hNu4Ya4HkNXmV7Ujg==","signatures":[{"sig":"MEYCIQCMe+p5qW50Npsq2a1BOn+dOd44UUPIEKm/n59buHn3nAIhANkFaGTMxyVEqUWanki/6tsbL3I1d7kM4Zrqg75HvoHs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":404392,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfmR9UCRA9TVsSAnZWagAADE4P/AhGkHODqUpmZkSBCI+F\n7aAAlKjScn4huC2+7m6wh4ct82d1pSjma5noKmxrK8+7XgNUGk89kKG12NTD\njWVLD7CKaPdaiNkL2r4fhYCZJiA1tRkGZ2V+f+7xMwl5eMkAhvHNn07zSV1m\n5nJRQqiQ9DlepotzK5irEseqlKbBpN8v7ctIz3mgy4Ex4oDjXgLCX+OQh7si\nFKEgVQw2TpBsSF+kQiBAJ7dFA0QAlDi0ewuHsDxY/uuK6hUQHnqJL7C9bWLp\ni7ZJRx8XoamOgvKiXkI2/hDZ4+yz3T5Q/OgNRgyeexxYtX9E1zvM01U3T4Vu\nLc2zWkTWNgOhMKirfAisqRd3yrDcHqLkAGkuBEyILunK+v+Yi8VQSpIZMEpf\nEMp9lSmHUS/2q6KBmiKeQ+DWxnmfF90opR8cK3ohsb/CJUYt9bhze/y8KKy2\nnefGnvhocA41Ey7FAwgHFmog9vfX0tBu8d1klSP3eEv27oExQlXS8RDzJEfA\neDkiT3B4fx7MOVTYM3+y+ZmZ+77UURwyEN0X9FEC7wdoDbbZJlJyzu31ARKI\nWgqlEbKVL8vmlOO7NFwv6L32eRQI4u89sJdmmSDqM1yo8jgTcPNI3sxkHr7t\ngmcR+qgk9Xj20VOERaTWAG4DGzidMxVCpLFYlKlwuJ62pr9D+UPrhI1+Q1wP\nZGKX\r\n=mTrU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/src/index.js","name":"yaml-language-server-parser","readme":"\nThis is a maintained fork of YAML-AST-PARSER specifically for the YAML Language server.\n\nIf you are looking for the main YAML-AST-PARSER project you can find that [here](https://github.com/mulesoft-labs/yaml-ast-parser)\n\n# yaml-ast-parser\n\nThis is a fork of JS-YAML which supports parsing of YAML into AST.\n\nIn additional to parsing YAML to AST, it has following features:\n\n* restoration after the errors and reporting errors as a part of AST nodes.\n* built-in support for `!include` tag used in RAML\n\n## Usage\nThe type information below is relevant when using TypeScript, if using from JavaScript only the field/method information is relevant.\n\n`load` method can be used to load the tree and returns a `YAMLNode`.\n\n### YAMLNode\n`YAMLNode` class is an ancestor for all node kinds.\nIt's `kind` field determine node kind, one of `Kind` enum:\n  * `SCALAR`, `MAPPING`, `MAP`, `SEQ`, `ANCHOR_REF` or `INCLUDE_REF`.\n \nAfter node kind is determined, it can be cast to one of the `YAMLNode` descendants types:\n * `YAMLScalar`, `YAMLMapping`, `YamlMap`, `YAMLSequence` or `YAMLAnchorReference`.\n\n| class | important members |\n|-------|-------------------|\n| `YAMLNode` | `startPosition` and `endPosition` provide node range.|\n| `YAMLScalar` | `string` `value` field |\n| `YAMLMapping` |`YAMLScalar` `key` and `YAMLNode` `value` fields | \n| `YAMLSequence` | `YAMLNode[]` `items` field|\n| `YamlMap` | `YAMLMapping[]` `mappings` field|\n| `YAMLAnchorReference` | `string` `referencesAnchor` and `YAMLNode` `value`|\n\n### YAMLScalar\n\nScalars are [one of the three main node types defined by YAML](http://www.yaml.org/spec/1.2/spec.html#scalar//) and are effectively leaf nodes.\n\nThere are many factors that can influence the type of datum represent in scalar node (context, schema, tag, etc.).\n\nTo help inspection of a `YAMLScalar` to determine its datatype when a document uses the [Core Schema](http://www.yaml.org/spec/1.2/spec.html#id2804923), you can pass the `YAMLScalar` to the `determineScalarType` function.  It will return an enum value indicating `null`, `bool`, `int`, `float`, or `string`.\n\nOnce you know the type, there are also some helper functions to help read the value by passing them the string, `value`: `parseYamlBoolean`, `parseYamlFloat`, and `parseYamlInteger`.\n","gitHead":"e57e0a7b6e465c41daaa074437ba046af63c22ff","license":"Apache-2.0","scripts":{"test":"npm run build && mocha --ui tdd dist/test","build":"rimraf dist && tsc","watch":"tsc --watch"},"typings":"dist/src/index.d.ts","_npmUser":{"name":"yvydolob","email":"yvydolob@redhat.com"},"homepage":"https://github.com/redhat-developer/yaml-ast-parser","keywords":["raml","ast","yaml"],"repository":{"url":"git+https://github.com/redhat-developer/yaml-ast-parser.git","type":"git"},"_npmVersion":"6.14.8","description":"This is a maintained fork of YAML-AST-PARSER specifically for the YAML Language server.","directories":{},"maintainers":[{"name":"yvydolob","email":"yvydolob@redhat.com"}],"_nodeVersion":"12.19.0","dependencies":{},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"chai":"4.2.0","mocha":"8.1.1","rimraf":"*","typescript":"3.0.1","@types/chai":"4.2.12","@types/node":"4.2.20","@types/mocha":"8.0.2"},"_npmOperationalInternal":{"tmp":"tmp/yaml-language-server-parser_0.1.1-e57e0a7.0_1603870548166_0.9914245777277209","host":"s3://npm-registry-packages"},"_id":"yaml-language-server-parser@0.1.1-e57e0a7.0","version":"0.1.1-e57e0a7.0"}