unplugin-yaml weekly downloads statistics
By luxass · npm · Vite plugins
Allow importing YAML files as JSON or Strings
unplugin-yaml has 14,376 recorded weekly downloads on npm, an increase of 42.0% over the past 30 days, ranking #1152 of 3,247 tracked listings.
About unplugin-yaml
unplugin-yaml
Allow import YAML file for Vite, Webpack, Rollup and esbuild. With TypeScript support. Powered by unplugin.
Install
npm i -D unplugin-yaml
Usage
<details> <summary>Vite</summary><br/>[!TIP] You can view all examples here.
// vite.config.ts
import YAMLPlugin from "unplugin-yaml/vite";
export default defineConfig({
plugins: [YAMLPlugin({/* options */})],
});
<br/></details>
<details> <summary>Rollup</summary><br/>// rollup.config.js
import YAMLPlugin from "unplugin-yaml/rollup";
export default {
plugins: [YAMLPlugin({/* options */})],
};
<br/></details>
<details> <summary>Webpack</summary><br/>// webpack.config.js
module.exports = {
/* ... */
plugins: [require("unplugin-yaml/webpack").default({/* options */})],
};
<br/></details>
<details> <summary>Nuxt</summary><br/>// nuxt.config.js
export default defineNuxtConfig({
modules: [["unplugin-yaml/nuxt", {/* options */}]],
});
<br/></details>
<details> <summary>Astro</summary><br/>// astro.config.mjs
import { defineConfig } from "astro/config";
import YAMLPlugin from "unplugin-yaml/astro";
// https://astro.build/config
export default defineConfig({
integrations: [YAMLPlugin({/* options */})],
});
<br/></details>
<details> <summary>esbuild</summary><br/>// esbuild.config.js
import { build } from "esbuild";
import YAMLPlugin from "unplugin-yaml/esbuild";
build({
/* ... */
plugins: [YAMLPlugin({/* options */})],
});
<br/></details>
<details> <summary>Rspack</summary><br/>// rspack.config.mjs
import rspack from "@rspack/core";
import YAMLPlugin from "unplugin-yaml/rspack";
/** @type {import('@rspack/core').Configuration} */
export default {
plugins: [
new rspack.HtmlRspackPlugin({
template: "./index.html",
}),
YAMLPlugin(),
],
};
<br/></details>
<details> <summary>Rolldown (Experimental)</summary><br/>// rolldown.config.js
import { defineConfig } from "rolldown";
import YAMLPlugin from "unplugin-yaml/rolldown";
export default defineConfig({
input: "./index.js",
plugins: [YAMLPlugin({/* options */})],
});
<br/></details>
Configuration
YAMLPlugin({
include: [
/\.yamlcustom$/, // .yamlcustom
],
parserOptions: {
// see yaml load options
},
});
TypeScript
If you are using TypeScript, you need to add the following to your tsconfig.json file:
{
"compilerOptions": {
"types": ["unplugin-yaml/types"]
}
}
📄 License
Published under MIT License.
Description from the npm listing.
- astro
- esbuild
- nuxt
- rolldown
- rolldown-plugin
- rollup
- rollup-plugin
- unplugin
- vite
- vite-plugin
- webpack
- yaml
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm Vite plugins plugins
All 20 unplugin-yaml alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/unplugin-yaml. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.