# @speedy-js/config-loader

> An out-of-box config loader with TypeScript support.

Latest version **0.1.4** (published 2022-02-05) · 0 weekly downloads

## Install

```sh
npm install @speedy-js/config-loader
pnpm add @speedy-js/config-loader
yarn add @speedy-js/config-loader
bun add @speedy-js/config-loader
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2022-02-05 |
| First published | 2021-11-20 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 21.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | amour1688, null~, thisispluto, zoolsher, ulivz, hardfist |
| Keywords | workflow, speedy, speedy-js, esbuild, config-loader, config |

## Links

- npm: https://www.npmjs.com/package/@speedy-js/config-loader
- npm.io page: https://npm.io/package/@speedy-js/config-loader

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 0.1.4 (latest) — 2022-02-05
- 0.1.3 — 2021-12-16
- 0.1.2 — 2021-12-04
- 0.1.1 — 2021-12-04
- 0.1.0 — 2021-11-20

## README

# @speedy-js/config-loader

[![npm version](https://badgen.net/npm/v/@speedy-js/config-loader)](https://npm.im/@speedy-js/config-loader)

An out-of-box config loader with TypeScript support.

## Install

```bash
npm i @speedy-js/config-loader -S
```

## Usage

```js
import { loadConfig } from '@speedy-js/config-loader';
// This load try to load at process.cwd():
//   - speedy.config.js
//   - speedy.config.ts
//   - speedyrc.js
//   - speedyrc.ts
const config = loadConfig({
  configKey: 'speedy',
});
```

Custom config path:

```js
// This will load `speedy.config.test.js` directly:
const config = loadConfig({
  cwd: useScene('config-suffix'),
  configKey: 'speedy',
  configFile: 'speedy.config.test.js',
});
```

## Credits

`@speedy-js/config-loader` wouldn't exist without the inspirations from following projects:

- [esbuild](https://github.com/evanw/esbuild)
- [bundle-require](https://github.com/egoist/bundle-require)

## License

MIT &copy; [ULIVZ](https://github.com/sponsors/ulivz)

---
_Source: https://npm.io/package/@speedy-js/config-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
