bun-plugin-yml
v0.3.1
Published
A simple Bun plugin to load .yml & .yaml files as modules.
Downloads
981
Maintainers
Readme
bun-plugin-yml
A simple loader for your yml & yaml files.
Features
- Simple
.yml
&.yaml
file loader - Powered by js-yaml
Usage
bun install -d bun-plugin-yml
Next, ensure you are preloading the plugin in your bunfig.toml
:
preload = [
"./node_modules/bun-plugin-yml/src/index.ts",
# ...
]
You may now use it in your project:
import config from './config/settings.yml'
// Example usage of loaded YAML content
console.log(`Application Name: ${config.appName}`)
console.log(`Version: ${config.version}`)
Testing
bun test
Changelog
Please see our releases page for more information on what has changed recently.
Contributing
Please review the Contributing Guide for details.
Community
For help, discussion about best practices, or any other conversation that would benefit from being searchable:
For casual chit-chat with others using this package:
Join the Stacks Discord Server
Postcardware
You will always be free to use any of the Stacks OSS software. We would also love to see which parts of the world Stacks ends up in. Receiving postcards makes us happy—and we will publish them on our website.
Our address: Stacks.js, 5710 Crescent Park #107, Playa Vista 90094, CA.
Sponsors
We would like to extend our thanks to the following sponsors for funding Stacks development. If you are interested in becoming a sponsor, please reach out to us.
Credits
Many thanks to the following core technologies & people who have contributed to this package:
License
The MIT License (MIT). Please see LICENSE for more information.
Made with 💙