{"name":"yaml-unist-parser","version":"3.1.0","keywords":["unist","yaml"],"author":{"url":"https://github.com/ikatyang","name":"Ika","email":"ikatyang@gmail.com"},"license":"MIT","_id":"yaml-unist-parser@3.1.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":"115eec71cdc76dfb4912162e04ec8fdf0c99f6d5","tarball":"http://registry-npm.ywwl.com/yaml-unist-parser/download/yaml-unist-parser-3.1.0.tgz","fileCount":79,"integrity":"sha512-hkwsdPLFBV6Vs40Mw5A11gzN9f9AiN8g72D8fXxfqnrW/AYY8/d7Yphx780UMzREcH7aRuHYAyQj9AwrI4E4xg==","signatures":[{"sig":"MEQCIATt1jA192GYc1iLDxuGlCDQqGUNJSCjjjc0fWYCFXAnAiAFfYZo6udxgAXD7Nbm+INFY8EMdtrL4G0FsbElBmcByQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/yaml-unist-parser@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":71940,"size":16153,"noattachment":false,"key":"/yaml-unist-parser/-/yaml-unist-parser-3.1.0.tgz"},"type":"module","engines":{"node":">= 14"},"exports":{".":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"},"./*":"./*"},"gitHead":"cac4fc7a863057e0b85cbe958183e48b91aa5462","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.6.2","description":"A YAML parser that produces output compatible with unist","directories":{},"_nodeVersion":"24.11.1","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.1.0_1764790910728_0.6911389743524061","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":1764790910930,"_cnpm_publish_time":1764790910930,"dist-tags":{"latest":"3.2.1"}}