load-yaml-config
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

load-yaml-config

加载yaml为配置文件,并生成对应的.d.ts类型声明文件。

安装

npm install load-yaml-config

使用

在 Node.js 中使用:

import { loadYamlConfig } from "load-yaml-config";
import * as path from "path";

const configPath = path.join(__dirname, "config.yaml");
const config = loadYamlConfig(configPath);
// 生成.d.ts文件后config将会有类型提示
console.log(config);

Readme

Keywords

Package Sidebar

Install

npm i load-yaml-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

393 kB

Total Files

12

Last publish

Collaborators

  • wenonly