{
  "_id": "@codemirror/lang-yaml",
  "maintainers": [
    {
      "email": "marijn@haverbeke.berlin",
      "name": "marijn"
    }
  ],
  "keywords": [
    "editor",
    "code"
  ],
  "dist-tags": {
    "latest": "6.1.3"
  },
  "author": {
    "url": "http://marijnhaverbeke.nl",
    "name": "Marijn Haverbeke",
    "email": "marijn@haverbeke.berlin"
  },
  "_rev": "6-5ce384514fa118cd9a1134adefaeb521",
  "description": "YAML language support for the CodeMirror code editor",
  "readme": "<!-- NOTE: README.md is generated from src/README.md -->\n\n# @codemirror/lang-yaml [![NPM version](https://img.shields.io/npm/v/@codemirror/lang-yaml.svg)](https://www.npmjs.org/package/@codemirror/lang-yaml)\n\n[ [**WEBSITE**](https://codemirror.net/) | [**ISSUES**](https://github.com/codemirror/dev/issues) | [**FORUM**](https://discuss.codemirror.net/) | [**CHANGELOG**](https://github.com/codemirror/lang-yaml/blob/main/CHANGELOG.md) ]\n\nThis package implements YAML language support for the\n[CodeMirror](https://codemirror.net/) code editor.\n\nThe [project page](https://codemirror.net/) has more information, a\nnumber of [examples](https://codemirror.net/examples/) and the\n[documentation](https://codemirror.net/docs/).\n\nThis code is released under an\n[MIT license](https://github.com/codemirror/lang-yaml/tree/main/LICENSE).\n\nWe aim to be an inclusive, welcoming community. To make that explicit,\nwe have a [code of\nconduct](http://contributor-covenant.org/version/1/1/0/) that applies\nto communication around the project.\n\nThe initial implementation of this package was funded by [Braintrust Data](https://braintrustdata.com/).\n\n## Usage\n\n```javascript\nimport {EditorView, basicSetup} from \"codemirror\"\nimport {yaml} from \"@codemirror/lang-yaml\"\n\nconst view = new EditorView({\n  parent: document.body,\n  doc: `name: Ferdinand\\nage: 93`,\n  extensions: [basicSetup, yaml()]\n})\n```\n\n## API Reference\n\n<dl>\n<dt id=\"user-content-yaml\">\n  <code><strong><a href=\"#user-content-yaml\">yaml</a></strong>() → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>Language support for YAML.</p>\n</dd>\n<dt id=\"user-content-yamllanguage\">\n  <code><strong><a href=\"#user-content-yamllanguage\">yamlLanguage</a></strong>: <a href=\"https://codemirror.net/docs/ref#language.LRLanguage\">LRLanguage</a></code></dt>\n\n<dd><p>A language provider based on the <a href=\"https://github.com/lezer-parser/yaml\">Lezer YAML\nparser</a>, extended with\nhighlighting and indentation information.</p>\n</dd>\n<dt id=\"user-content-yamlfrontmatter\">\n  <code><strong><a href=\"#user-content-yamlfrontmatter\">yamlFrontmatter</a></strong>(<a id=\"user-content-yamlfrontmatter^config\" href=\"#user-content-yamlfrontmatter^config\">config</a>: {content: <a href=\"https://codemirror.net/docs/ref#language.Language\">Language</a> | <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a>}) → <a href=\"https://codemirror.net/docs/ref#language.LanguageSupport\">LanguageSupport</a></code></dt>\n\n<dd><p>Returns language support for a document parsed as <code>config.content</code>\nwith an optional YAML &quot;frontmatter&quot; delimited by lines that\ncontain three dashes.</p>\n</dd>\n</dl>\n",
  "repository": {
    "url": "git+https://github.com/codemirror/lang-yaml.git",
    "type": "git"
  },
  "bugs": {
    "url": "https://github.com/codemirror/lang-yaml/issues"
  },
  "license": "MIT",
  "versions": {
    "6.0.0": {
      "name": "@codemirror/lang-yaml",
      "version": "6.0.0",
      "keywords": [
        "editor",
        "code"
      ],
      "author": {
        "url": "http://marijnhaverbeke.nl",
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@codemirror/lang-yaml@6.0.0",
      "maintainers": [
        {
          "name": "adrianheine",
          "email": "mail@adrianheine.de"
        },
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/codemirror/lang-yaml#readme",
      "bugs": {
        "url": "https://github.com/codemirror/lang-yaml/issues"
      },
      "dist": {
        "shasum": "768b5c646939bf444ba5b87a1ca8428059fedcb5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@codemirror/lang-yaml/-/lang-yaml-6.0.0.tgz",
        "fileCount": 9,
        "integrity": "sha512-fVPapdX1oYr5HMC5bou1MHscGnNCvOHuhUW6C+V2gfIeIRcughvVfznV0OuUyHy0AdXoBCjOehjzFcmLRumu2Q==",
        "signatures": [
          {
            "sig": "MEUCIBes1vIgKfFRj9vyV8doOSoEtkPXW5OPEKQUoy/h6hntAiEAgJxcLpBzu40pCyk469EuKZoBsVVKapwfEIOE2gkxryI=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 9630
      },
      "main": "dist/index.cjs",
      "type": "module",
      "types": "dist/index.d.ts",
      "module": "dist/index.js",
      "exports": {
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "7ce1d56555ed9abe4bb9494e07b5df50e8d21f30",
      "scripts": {
        "test": "cm-runtests",
        "prepare": "cm-buildhelper src/yaml.ts"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/codemirror/lang-yaml.git",
        "type": "git"
      },
      "_npmVersion": "10.2.3",
      "description": "YAML language support for the CodeMirror code editor",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "18.19.0",
      "dependencies": {
        "@lezer/yaml": "^1.0.0",
        "@lezer/common": "^1.2.0",
        "@codemirror/state": "^6.0.0",
        "@codemirror/language": "^6.0.0",
        "@codemirror/autocomplete": "^6.0.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "@codemirror/buildhelper": "^1.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/lang-yaml_6.0.0_1705909979254_0.5632386682788839",
        "host": "s3://npm-registry-packages"
      }
    },
    "6.1.0": {
      "name": "@codemirror/lang-yaml",
      "version": "6.1.0",
      "keywords": [
        "editor",
        "code"
      ],
      "author": {
        "url": "http://marijnhaverbeke.nl",
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@codemirror/lang-yaml@6.1.0",
      "maintainers": [
        {
          "name": "adrianheine",
          "email": "mail@adrianheine.de"
        },
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/codemirror/lang-yaml#readme",
      "bugs": {
        "url": "https://github.com/codemirror/lang-yaml/issues"
      },
      "dist": {
        "shasum": "83cc247e29b08b40a9e39b9ec7ce98f9bba58d76",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@codemirror/lang-yaml/-/lang-yaml-6.1.0.tgz",
        "fileCount": 9,
        "integrity": "sha512-QQEEOWjHplNScULb0NCMVUcp+TPTpg42vmTcH62UMLVBkvAEFuVkhqH11f50m/pnai7qUfSLv6ZJoPv76Ky3QA==",
        "signatures": [
          {
            "sig": "MEQCIEFj+LZU/pO/xanAzCjmqa3AqzTvs178iF8Kv8u+Z1JTAiBH/VG2/NQEFRrS5+ZS3ywf6iHTKd8OCkCwKfXU3IOB2A==",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15057
      },
      "main": "dist/index.cjs",
      "type": "module",
      "types": "dist/index.d.ts",
      "module": "dist/index.js",
      "exports": {
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "0dc086654debe506d298f39316b8aef69222111c",
      "scripts": {
        "test": "cm-runtests",
        "prepare": "cm-buildhelper src/yaml.ts"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/codemirror/lang-yaml.git",
        "type": "git"
      },
      "_npmVersion": "10.2.3",
      "description": "YAML language support for the CodeMirror code editor",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "18.19.0",
      "dependencies": {
        "@lezer/yaml": "^1.0.0",
        "@lezer/common": "^1.2.0",
        "@lezer/highlight": "^1.2.0",
        "@codemirror/state": "^6.0.0",
        "@codemirror/language": "^6.0.0",
        "@codemirror/autocomplete": "^6.0.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "@codemirror/buildhelper": "^1.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/lang-yaml_6.1.0_1712475418170_0.7063128333950244",
        "host": "s3://npm-registry-packages"
      }
    },
    "6.1.1": {
      "name": "@codemirror/lang-yaml",
      "version": "6.1.1",
      "keywords": [
        "editor",
        "code"
      ],
      "author": {
        "url": "http://marijnhaverbeke.nl",
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@codemirror/lang-yaml@6.1.1",
      "maintainers": [
        {
          "name": "adrianheine",
          "email": "mail@adrianheine.de"
        },
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/codemirror/lang-yaml#readme",
      "bugs": {
        "url": "https://github.com/codemirror/lang-yaml/issues"
      },
      "dist": {
        "shasum": "6f6e4e16c5a4e6d549f462c9dc2053439e070d0d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@codemirror/lang-yaml/-/lang-yaml-6.1.1.tgz",
        "fileCount": 9,
        "integrity": "sha512-HV2NzbK9bbVnjWxwObuZh5FuPCowx51mEfoFT9y3y+M37fA3+pbxx4I7uePuygFzDsAmCTwQSc/kXh/flab4uw==",
        "signatures": [
          {
            "sig": "MEYCIQDdvueasAjUJsan/wl7PW4wgc3m6klZUxxRQ1B2wcsCXwIhAJCnP09UEECee1EALi+U5v0k5Cb3MRM9J92xzNqopNN2",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15150
      },
      "main": "dist/index.cjs",
      "type": "module",
      "types": "dist/index.d.ts",
      "module": "dist/index.js",
      "exports": {
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "d4e532e7ecbf67e902d315cd0a418d415b956d2d",
      "scripts": {
        "test": "cm-runtests",
        "prepare": "cm-buildhelper src/yaml.ts"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/codemirror/lang-yaml.git",
        "type": "git"
      },
      "_npmVersion": "10.2.3",
      "description": "YAML language support for the CodeMirror code editor",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "18.19.0",
      "dependencies": {
        "@lezer/yaml": "^1.0.0",
        "@lezer/common": "^1.2.0",
        "@lezer/highlight": "^1.2.0",
        "@codemirror/state": "^6.0.0",
        "@codemirror/language": "^6.0.0",
        "@codemirror/autocomplete": "^6.0.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "@codemirror/buildhelper": "^1.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/lang-yaml_6.1.1_1712908478670_0.25400218384594964",
        "host": "s3://npm-registry-packages"
      }
    },
    "6.1.2": {
      "name": "@codemirror/lang-yaml",
      "version": "6.1.2",
      "keywords": [
        "editor",
        "code"
      ],
      "author": {
        "url": "http://marijnhaverbeke.nl",
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@codemirror/lang-yaml@6.1.2",
      "maintainers": [
        {
          "name": "adrianheine",
          "email": "mail@adrianheine.de"
        },
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/codemirror/lang-yaml#readme",
      "bugs": {
        "url": "https://github.com/codemirror/lang-yaml/issues"
      },
      "dist": {
        "shasum": "c84280c68fa7af456a355d91183b5e537e9b7038",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@codemirror/lang-yaml/-/lang-yaml-6.1.2.tgz",
        "fileCount": 9,
        "integrity": "sha512-dxrfG8w5Ce/QbT7YID7mWZFKhdhsaTNOYjOkSIMt1qmC4VQnXSDSYVHHHn8k6kJUfIhtLo8t1JJgltlxWdsITw==",
        "signatures": [
          {
            "sig": "MEUCIQDL0ps4n//xpIY+JCwndhuyohs6R5rnjV8E+IAriQjNqQIgDNjdmpQcMEj8t9ZycGbeJLwbygM+NffPk+iamMaZErk=",
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
          }
        ],
        "unpackedSize": 15341
      },
      "main": "dist/index.cjs",
      "type": "module",
      "types": "dist/index.d.ts",
      "module": "dist/index.js",
      "exports": {
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "f5f75ecd9dda4825f53fce56e50a752c763032a0",
      "scripts": {
        "test": "cm-runtests",
        "prepare": "cm-buildhelper src/yaml.ts"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/codemirror/lang-yaml.git",
        "type": "git"
      },
      "_npmVersion": "10.9.0",
      "description": "YAML language support for the CodeMirror code editor",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "20.13.1",
      "dependencies": {
        "@lezer/lr": "^1.0.0",
        "@lezer/yaml": "^1.0.0",
        "@lezer/common": "^1.2.0",
        "@lezer/highlight": "^1.2.0",
        "@codemirror/state": "^6.0.0",
        "@codemirror/language": "^6.0.0",
        "@codemirror/autocomplete": "^6.0.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "@codemirror/buildhelper": "^1.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/lang-yaml_6.1.2_1733819006928_0.28251373283576386",
        "host": "s3://npm-registry-packages-npm-production"
      }
    },
    "6.1.3": {
      "name": "@codemirror/lang-yaml",
      "version": "6.1.3",
      "keywords": [
        "editor",
        "code"
      ],
      "author": {
        "url": "http://marijnhaverbeke.nl",
        "name": "Marijn Haverbeke",
        "email": "marijn@haverbeke.berlin"
      },
      "license": "MIT",
      "_id": "@codemirror/lang-yaml@6.1.3",
      "maintainers": [
        {
          "name": "adrianheine",
          "email": "mail@adrianheine.de"
        },
        {
          "name": "marijn",
          "email": "marijn@haverbeke.berlin"
        }
      ],
      "homepage": "https://github.com/codemirror/lang-yaml#readme",
      "bugs": {
        "url": "https://github.com/codemirror/lang-yaml/issues"
      },
      "dist": {
        "shasum": "4d4127e8339984639715d1e3f8edca1ea5bfabfb",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/@codemirror/lang-yaml/-/lang-yaml-6.1.3.tgz",
        "fileCount": 9,
        "integrity": "sha512-AZ8DJBuXGVHybpBQhmZtgew5//4hv3tdkXnr3vDmOUMJRuB6vn/uuwtmTOTlqEaQFg3hQSVeA90NmvIQyUV6FQ==",
        "signatures": [
          {
            "sig": "MEQCIBDJwaBteCsCSohlL3CWVVXTvZs1vVnChD1W0gtbKPMDAiAUIrH0jhdViYAxi+UM1EVVFtexKTXklwE8b5ioG3WGJA==",
            "keyid": "SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"
          }
        ],
        "unpackedSize": 15718
      },
      "main": "dist/index.cjs",
      "type": "module",
      "types": "dist/index.d.ts",
      "module": "dist/index.js",
      "exports": {
        "import": "./dist/index.js",
        "require": "./dist/index.cjs"
      },
      "gitHead": "1a5b4f7d1e5692181aa55c2dbad94da07b8ed944",
      "scripts": {
        "test": "cm-runtests",
        "prepare": "cm-buildhelper src/yaml.ts"
      },
      "_npmUser": {
        "name": "marijn",
        "email": "marijn@haverbeke.berlin"
      },
      "repository": {
        "url": "git+https://github.com/codemirror/lang-yaml.git",
        "type": "git"
      },
      "_npmVersion": "11.9.0",
      "description": "YAML language support for the CodeMirror code editor",
      "directories": {},
      "sideEffects": false,
      "_nodeVersion": "22.20.0",
      "dependencies": {
        "@lezer/lr": "^1.0.0",
        "@lezer/yaml": "^1.0.0",
        "@lezer/common": "^1.2.0",
        "@lezer/highlight": "^1.2.0",
        "@codemirror/state": "^6.0.0",
        "@codemirror/language": "^6.0.0",
        "@codemirror/autocomplete": "^6.0.0"
      },
      "_hasShrinkwrap": false,
      "devDependencies": {
        "@codemirror/buildhelper": "^1.0.0"
      },
      "_npmOperationalInternal": {
        "tmp": "tmp/lang-yaml_6.1.3_1774343888010_0.1352128457772528",
        "host": "s3://npm-registry-packages-npm-production"
      }
    }
  },
  "name": "@codemirror/lang-yaml",
  "time": {
    "created": "2024-01-22T07:52:59.157Z",
    "modified": "2026-05-06T08:25:09.864Z",
    "6.0.0": "2024-01-22T07:52:59.397Z",
    "6.1.0": "2024-04-07T07:36:58.335Z",
    "6.1.1": "2024-04-12T07:54:38.834Z",
    "6.1.2": "2024-12-10T08:23:27.133Z",
    "6.1.3": "2026-03-24T09:18:08.162Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/codemirror/lang-yaml#readme"
}