{"bugs":{"url":"https://github.com/redhat-developer/yaml-ast-parser/issues"},"dist":{"shasum":"da6c241bd23ee7303d035a99fdc01554e0193f70","tarball":"https://registry.npmjs.org/yaml-language-server-parser/-/yaml-language-server-parser-0.1.3-fa8245c.0.tgz","fileCount":161,"integrity":"sha512-0QPUSsmMXHDpqj00xUrlMyqlEAwHHIAuz3wPMyprcCVYx7jh7oo91Z0nC/jhott4XAKp3iY3vjBsMxqszoZosA==","signatures":[{"sig":"MEQCID1iZ++uTwO/Fb+X2q6r7MR7UQmD9JUD6iweV1LdwqC/AiBsiFeQc4clCt/NFNx0isxDQd6I9V9YbJi05OvN5LTaLQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":435146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf0MwWCRA9TVsSAnZWagAAPNUP/1Lh50Z+yJ5H3+M047ZT\nzjam2zxWlWeZFMX2T/vj+zAY9wK4j0M+s4UYDBRc7sggdfqNU4bsj2jXxE9s\nA2GwzwiEl09ae25ajeprLCv4nCPj4Gkfo3nP9YJXqZBCMEi9flBVjfOE6RwJ\nrBYbVRmUHsd+vd9ZEi6gPNDwLTW02ejK7wPhFt34V4+9uFBlaPNqMqdk6EVq\nePbc5UG+QvygU/KV5d38eybqU5MuXvb/7HArh8e3X4XXkEBK6U9YfjrVVsG5\nNJiRKtIAkfCHGs/vIvLYneb4v80ZSs7JCiqXYwH7qWNqoDfuH+CFLgFZaqsv\nQwwC4qaxGhVwBqxaF/UFICHTFU5pzGMW+ccRQYDlZ5rz/CXCBdBRPGqERZac\n3J3awY+5slNJtoWE0Bn9itptLnHnw7tcKcLsG4g0PqLD4ot21GzkSz3F520d\n8tmgGOnsuBMmfystnycx7qC5RRO0tjYqOwvxmeJUJ7asi9Sbvu3fKxyqvLqF\nMgjYNionF4A9dA9fgnbzwqbTJIjY7VbeZKcvgGeUcGcoMZEd/IgLUI9SxNQ6\nTnxA15/+0epEkxi9Rn0RDzRwuknAgzHEEBsEumttS32s77hlaLMvgdiaLBvI\n5xeNrU68xBQ4Lnw9jbUMrgSySM3bq4iI59MyoCCVHCsVOuCPDkUoMqqr5RTz\np+aJ\r\n=w6Cd\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":"fa8245c111bb0da0d7fa82379f87d9e4e716f92f","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.20.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.3-fa8245c.0_1607519253825_0.7010811393879273","host":"s3://npm-registry-packages"},"_id":"yaml-language-server-parser@0.1.3-fa8245c.0","version":"0.1.3-fa8245c.0"}