
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
esbuild-plugin-yaml
Advanced tools
Use YAML files as ES6 modules with esbuild.
yarn add -D esbuild-plugin-yaml
or
npm i -D esbuild-plugin-yaml
Add to your esbuild plugins list:
const esbuild = require("esbuild");
const { yamlPlugin } = require("esbuild-plugin-yaml");
esbuild.build({
...
plugins: [
yamlPlugin()
]
...
});
You can add your own custom configuration of options to esbuild-plugin-yaml:
yamlPlugin({
// options
});
loadOptionsLoadOptions by js-yaml.
transformA function which can mutate parsed YAML. It should return an object or undefined (that will make no changes to the parsed YAML).
transform(data, filePath) {
// transform the yaml file
// the file content will be in the "data" field
// the file path will be in the "filePath" field
return { filePath, data };
}
FAQs
Convert YAML files to ES6 modules
The npm package esbuild-plugin-yaml receives a total of 5,871 weekly downloads. As such, esbuild-plugin-yaml popularity was classified as popular.
We found that esbuild-plugin-yaml demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.