{"library":"yaml-loader","type":"library","category":null,"description":"A Webpack loader that converts YAML files into JavaScript objects or JSON strings, using the `yaml` library for parsing. The current stable version is 0.9.0, released with support for Webpack 5+ and Node.js 20+. It offers options like `asJSON` for JSON output, `asStream` for parsing multi-document YAML streams, and `namespace` for extracting specific sub-trees. Unlike alternatives like js-yaml-loader, this loader leverages the more modern `yaml` package and is actively maintained. Release cadence is irregular, with major version bumps for breaking changes.","language":"javascript","status":"active","version":"0.9.0","tags":["javascript","yaml","webpack","loader","json"],"last_verified":"Sat Apr 25","install":[{"cmd":"npm install yaml-loader","imports":["module.exports = { module: { rules: [ { test: /\\.ya?ml$/, use: 'yaml-loader' } ] } }","import config from './config.yaml';","import type { YAMLType } from 'yaml'; // not needed for loader","import data from './data.yaml?namespace=config';","const data = require('./data.yaml');"]},{"cmd":"yarn add yaml-loader","imports":[]},{"cmd":"pnpm add yaml-loader","imports":[]}],"homepage":null,"github":"https://github.com/eemeli/yaml-loader","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/yaml-loader","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}