rc-config-loader
- Version 4.1.3
- Published
- 28.5 kB
- 4 dependencies
- MIT license
Install
npm i rc-config-loader
yarn add rc-config-loader
pnpm add rc-config-loader
Overview
load config file from .{product}rc.{json,yml,js}
Index
Functions
Functions
function rcFile
rcFile: <R extends {}>( pkgName: string, opts?: rcConfigLoaderOption) => PossibleUndefined<rcConfigResult<R>>;
Find and load rcfile, return { config, filePath } If not found any rcfile, throw an Error.
Parameter pkgName
Parameter opts
Returns
{{ config: Object, filePath:string } | undefined}
Package Files (1)
Dependencies (4)
Dev Dependencies (9)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rc-config-loader
.
- Markdown[![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/rc-config-loader)
- HTML<a href="https://www.jsdocs.io/package/rc-config-loader"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2291 ms. - Missing or incorrect documentation? Open an issue for this package.