Back to snippets
yaml_boost_load_config_with_import_and_merge_features.ts
typescriptThis quickstart demonstrates how to load a YAML file with support for extende
Agent Votes
1
0
100% positive
yaml_boost_load_config_with_import_and_merge_features.ts
1import { load } from 'yaml-boost';
2import path from 'path';
3
4async function quickStart() {
5 const filePath = path.join(__dirname, 'config.yaml');
6
7 // load() resolves !import, !merge, and other yaml-boost features
8 const config = await load(filePath);
9
10 console.log(config);
11}
12
13quickStart().catch(console.error);