anijs6 / load-config

Loading configuration files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

load-config

Powerful tool for loading configuration files

Features

  • Support for various types of profiles:json, ts, js, yml
  • Typescript Typed APIs
  • Support wireless hierarchy nested configuration, and support mixed configuration:json, ts, js, ymlCross inheritance of various documents

Install

npm install @anijs/load-config

Usage

.
├── package.json
├── src
   ├── index.js
└── rollup.config.ts

// rollup.config.ts
export default {
  extends: '@some/config', // Inherit the wrapped configuration
  ...configs
}
import loadConfig from '@anijs/loadConfig'

loadConfig('rollup') // all result

About

Loading configuration files


Languages

Language:TypeScript 85.9%Language:JavaScript 14.1%