{"name":"yaml-unist-parser","version":"3.2.0","keywords":["unist","yaml"],"author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"license":"MIT","_id":"yaml-unist-parser@3.2.0","maintainers":[{"name":"thorn0","email":"georgii.dolzhykov@gmail.com"},{"name":"fisker","email":"lionkay@gmail.com"},{"name":"ikatyang","email":"ikatyang@gmail.com"}],"homepage":"https://github.com/prettier/yaml-unist-parser#readme","bugs":{"url":"https://github.com/prettier/yaml-unist-parser/issues"},"dist":{"shasum":"6611a0b2ce53d321941a2d51aad26bd423b9b082","tarball":"http://registry-npm.ywwl.com/yaml-unist-parser/download/yaml-unist-parser-3.2.0.tgz","fileCount":73,"integrity":"sha512-1WJ0TpBq12nsw7B9kp/XRDfgaDwS+oH/bvkqte722MgEqT7pYx5i/1UveiJSpxTHbmLWs/dexGJRgVcxe6K5fg==","signatures":[{"sig":"MEUCIQC+9pmFbB5uVlCwU4dGoY3IKOvLLKRIkNAXLlE1v2t4RwIgbE+eouYf61bLcYoCk04c2TeI+39WTYcfF8hBZ+u1e6o=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/yaml-unist-parser@3.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":66024,"size":15388,"noattachment":false,"key":"/yaml-unist-parser/-/yaml-unist-parser-3.2.0.tgz"},"type":"module","engines":{"node":">= 14"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./*":"./*"},"gitHead":"9a378afc905c068d135eb2ae86cc8f35ea71180c","scripts":{"fix":"run-s \"fix:*\"","lint":"run-p \"lint:*\"","test":"vitest","build":"tsdown --unbundle","release":"release-it","fix:eslint":"yarn lint:eslint --fix","lint:types":"tsc","prepublish":"yarn run build","lint:eslint":"eslint .","fix:prettier":"prettier . --write","lint:prettier":"prettier . --check"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:eef74f70-cb38-4592-81e8-a96a62943f22"}},"repository":{"url":"git+https://github.com/prettier/yaml-unist-parser.git","type":"git"},"_npmVersion":"11.13.0","description":"A YAML parser that produces output compatible with unist","directories":{},"_nodeVersion":"24.16.0","dependencies":{"yaml":"^2.8.2"},"_hasShrinkwrap":false,"packageManager":"yarn@4.11.0","devDependencies":{"eslint":"9.39.1","tsdown":"0.17.0-beta.6","vitest":"4.0.15","globals":"16.5.0","prettier":"3.7.4","@eslint/js":"9.39.1","release-it":"19.0.6","typescript":"5.9.3","@types/node":"24.10.1","npm-run-all2":"8.0.4","patch-package":"8.0.1","yaml-test-suite":"0.1.0","typescript-eslint":"8.48.1","@vitest/coverage-v8":"4.0.15","eslint-config-prettier":"10.1.8","jest-snapshot-serializer-raw":"2.0.0","eslint-plugin-simple-import-sort":"12.1.1"},"_npmOperationalInternal":{"tmp":"tmp/yaml-unist-parser_3.2.0_1780280964986_0.30062113501380816","host":"s3://npm-registry-packages-npm-production"},"readme":"# yaml-unist-parser\n\n[![npm](https://img.shields.io/npm/v/yaml-unist-parser.svg?style=flat-square)](https://www.npmjs.com/package/yaml-unist-parser)\n[![coverage](https://img.shields.io/codecov/c/github/prettier/yaml-unist-parser.svg?style=flat-square)](https://codecov.io/gh/prettier/yaml-unist-parser)\n\nA YAML parser that produces output compatible with [unist](https://github.com/syntax-tree/unist)\n\n## Features\n\n- better node positioning\n- better comment attaching\n- [unist-compatible AST](https://github.com/prettier/yaml-unist-parser/blob/main/src/types.ts)\n\n## Install\n\n```sh\n# using npm\nnpm install --save yaml-unist-parser\n\n# using yarn\nyarn add yaml-unist-parser\n```\n\n## Usage\n\n```ts\nimport { parse } from \"yaml-unist-parser\";\n\nconst ast = parse(`\n- hello\n- world\n`);\n```\n\n## Options\n\n### `uniqueKeys`\n\ntype `boolean`\\\ndefault: `true`\n\nWhether key uniqueness is checked.\n\n```js\nparse(\"a: 1\\na: 2\");\n// Uncaught SyntaxError [YAMLSyntaxError]: Map keys must be unique\n\nparse(\"a: 1\\na: 2\", { uniqueKeys: false });\n// {type: 'root',...}\n```\n\n## Development\n\n```sh\n# lint\nyarn run lint\n\n# build\nyarn run build\n\n# test\nyarn run test\n```\n\n## License\n\nMIT © [Ika](https://github.com/ikatyang)\n","publish_time":1780280965133,"_cnpm_publish_time":1780280965133,"dist-tags":{"latest":"3.2.1"}}