Comparing version 1.7.0 to 1.8.0
{ | ||
"name": "c12", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "Smart Config Loader", | ||
@@ -50,2 +50,3 @@ "repository": "unjs/c12", | ||
"@vitest/coverage-v8": "^1.2.1", | ||
"automd": "^0.2.0", | ||
"changelogen": "^0.5.5", | ||
@@ -52,0 +53,0 @@ "eslint": "^8.56.0", |
# ⚙️ c12 | ||
[![npm version][npm-version-src]][npm-version-href] | ||
[![npm downloads][npm-downloads-src]][npm-downloads-href] | ||
[![Codecov][codecov-src]][codecov-href] | ||
[![License][license-src]][license-href] | ||
<!-- automd:badges color=yellow codecov --> | ||
[![npm version](https://img.shields.io/npm/v/c12?color=yellow)](https://npmjs.com/package/c12) | ||
[![npm downloads](https://img.shields.io/npm/dm/c12?color=yellow)](https://npmjs.com/package/c12) | ||
[![codecov](https://img.shields.io/codecov/c/gh/unjs/c12?color=yellow)](https://codecov.io/gh/unjs/c12) | ||
<!-- /automd --> | ||
c12 (pronounced as /siːtwelv/, like c-twelve) is a smart configuration loader. | ||
## Features | ||
## ✅ Features | ||
- `.js`, `.ts`, `.cjs`, `.mjs` config loader with [unjs/jiti](https://github.com/unjs/jiti) | ||
- `.json`, `.json5` and `.jsonc` config support. | ||
- `.json`, `.json5` and `.jsonc` config support | ||
- `.config/` directory support following [config dir proposal](https://github.com/pi0/config-dir) | ||
- `.rc` config support with [unjs/rc9](https://github.com/unjs/rc9) | ||
@@ -22,2 +26,11 @@ - `.env` support with [dotenv](https://www.npmjs.com/package/dotenv) | ||
## 🦴 Used by | ||
- [Nuxt](https://nuxt.com/) | ||
- [Nitro](https://nitro.unjs.io/) | ||
- [Unbuild](https://unbuild.unjs.io) | ||
- [Automd](https://automd.unjs.io) | ||
- [Changelogen](https://changelogen.unjs.io) | ||
- [RemixKit](https://github.com/jrestall/remix-kit) | ||
## Usage | ||
@@ -27,13 +40,23 @@ | ||
<!-- automd:pm-install --> | ||
```sh | ||
# ✨ Auto-detect | ||
npx nypm i c12@^1.7.0 | ||
# npm | ||
npm install c12 | ||
npm install c12@^1.7.0 | ||
# yarn | ||
yarn add c12 | ||
yarn add c12@^1.7.0 | ||
# pnpm | ||
pnpm install c12 | ||
pnpm install c12@^1.7.0 | ||
# bun | ||
bun install c12@^1.7.0 | ||
``` | ||
<!-- /automd --> | ||
Import: | ||
@@ -40,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55419
999
366
11