Smart configuration loader
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: use automd

+188 -8
+20 -7
README.md
··· 1 1 # ⚙️ c12 2 2 3 - [![npm version][npm-version-src]][npm-version-href] 4 - [![npm downloads][npm-downloads-src]][npm-downloads-href] 5 - [![Codecov][codecov-src]][codecov-href] 6 - [![License][license-src]][license-href] 3 + <!-- automd:badges color=yellow codecov --> 4 + 5 + [![npm version](https://img.shields.io/npm/v/c12?color=yellow)](https://npmjs.com/package/c12) 6 + [![npm downloads](https://img.shields.io/npm/dm/c12?color=yellow)](https://npmjs.com/package/c12) 7 + [![codecov](https://img.shields.io/codecov/c/gh/unjs/c12?color=yellow)](https://codecov.io/gh/unjs/c12) 8 + 9 + <!-- /automd --> 7 10 8 11 c12 (pronounced as /siːtwelv/, like c-twelve) is a smart configuration loader. 9 12 ··· 32 35 33 36 Install package: 34 37 38 + <!-- automd:pm-install --> 39 + 35 40 ```sh 41 + # ✨ Auto-detect 42 + npx nypm i c12@^1.7.0 43 + 36 44 # npm 37 - npm install c12 45 + npm install c12@^1.7.0 38 46 39 47 # yarn 40 - yarn add c12 48 + yarn add c12@^1.7.0 41 49 42 50 # pnpm 43 - pnpm install c12 51 + pnpm install c12@^1.7.0 52 + 53 + # bun 54 + bun install c12@^1.7.0 44 55 ``` 56 + 57 + <!-- /automd --> 45 58 46 59 Import: 47 60
+2 -1
package.json
··· 47 47 "devDependencies": { 48 48 "@types/node": "^20.11.5", 49 49 "@vitest/coverage-v8": "^1.2.1", 50 + "automd": "^0.2.0", 50 51 "changelogen": "^0.5.5", 51 52 "eslint": "^8.56.0", 52 53 "eslint-config-unjs": "^0.2.1", ··· 57 58 "vitest": "^1.2.1" 58 59 }, 59 60 "packageManager": "pnpm@8.14.1" 60 - } 61 + }
+166
pnpm-lock.yaml
··· 52 52 '@vitest/coverage-v8': 53 53 specifier: ^1.2.1 54 54 version: 1.2.1(vitest@1.2.1) 55 + automd: 56 + specifier: ^0.2.0 57 + version: 0.2.0 55 58 changelogen: 56 59 specifier: ^0.5.5 57 60 version: 0.5.5 ··· 128 131 - supports-color 129 132 dev: true 130 133 134 + /@babel/core@7.23.9: 135 + resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==} 136 + engines: {node: '>=6.9.0'} 137 + dependencies: 138 + '@ampproject/remapping': 2.2.1 139 + '@babel/code-frame': 7.23.5 140 + '@babel/generator': 7.23.6 141 + '@babel/helper-compilation-targets': 7.23.6 142 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) 143 + '@babel/helpers': 7.23.9 144 + '@babel/parser': 7.23.9 145 + '@babel/template': 7.23.9 146 + '@babel/traverse': 7.23.9 147 + '@babel/types': 7.23.9 148 + convert-source-map: 2.0.0 149 + debug: 4.3.4 150 + gensync: 1.0.0-beta.2 151 + json5: 2.2.3 152 + semver: 6.3.1 153 + transitivePeerDependencies: 154 + - supports-color 155 + dev: true 156 + 131 157 /@babel/generator@7.23.6: 132 158 resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} 133 159 engines: {node: '>=6.9.0'} ··· 190 216 '@babel/helper-validator-identifier': 7.22.20 191 217 dev: true 192 218 219 + /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9): 220 + resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} 221 + engines: {node: '>=6.9.0'} 222 + peerDependencies: 223 + '@babel/core': ^7.0.0 224 + dependencies: 225 + '@babel/core': 7.23.9 226 + '@babel/helper-environment-visitor': 7.22.20 227 + '@babel/helper-module-imports': 7.22.15 228 + '@babel/helper-simple-access': 7.22.5 229 + '@babel/helper-split-export-declaration': 7.22.6 230 + '@babel/helper-validator-identifier': 7.22.20 231 + dev: true 232 + 193 233 /@babel/helper-simple-access@7.22.5: 194 234 resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} 195 235 engines: {node: '>=6.9.0'} ··· 230 270 - supports-color 231 271 dev: true 232 272 273 + /@babel/helpers@7.23.9: 274 + resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==} 275 + engines: {node: '>=6.9.0'} 276 + dependencies: 277 + '@babel/template': 7.23.9 278 + '@babel/traverse': 7.23.9 279 + '@babel/types': 7.23.9 280 + transitivePeerDependencies: 281 + - supports-color 282 + dev: true 283 + 233 284 /@babel/highlight@7.23.4: 234 285 resolution: {integrity: sha512-acGdbYSfp2WheJoJm/EBBBLh/ID8KDc64ISZ9DYtBmC8/Q204PZJLHyzeB5qMzJ5trcOkybd78M4x2KWsUq++A==} 235 286 engines: {node: '>=6.9.0'} ··· 248 299 '@babel/types': 7.23.6 249 300 dev: true 250 301 302 + /@babel/parser@7.23.9: 303 + resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==} 304 + engines: {node: '>=6.0.0'} 305 + hasBin: true 306 + dependencies: 307 + '@babel/types': 7.23.9 308 + dev: true 309 + 310 + /@babel/standalone@7.23.10: 311 + resolution: {integrity: sha512-xqWviI/pt1Zb/d+6ilWa5IDL2mkDzsBnlHbreqnfyP3/QB/ofQ1bNVcHj8YQX154Rf/xZKR6y0s1ydVF3nAS8g==} 312 + engines: {node: '>=6.9.0'} 313 + dev: true 314 + 251 315 /@babel/standalone@7.23.6: 252 316 resolution: {integrity: sha512-+AzS6BZwZdSosrgS/TiGDYLxtlefARKClWgJ4ql//XfmV9KbPWbkEekvbvDRJ8a6qog8E9j3CziHLz5dbIEMyw==} 253 317 engines: {node: '>=6.9.0'} ··· 260 324 '@babel/code-frame': 7.23.5 261 325 '@babel/parser': 7.23.6 262 326 '@babel/types': 7.23.6 327 + dev: true 328 + 329 + /@babel/template@7.23.9: 330 + resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==} 331 + engines: {node: '>=6.9.0'} 332 + dependencies: 333 + '@babel/code-frame': 7.23.5 334 + '@babel/parser': 7.23.9 335 + '@babel/types': 7.23.9 263 336 dev: true 264 337 265 338 /@babel/traverse@7.23.6: ··· 280 353 - supports-color 281 354 dev: true 282 355 356 + /@babel/traverse@7.23.9: 357 + resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==} 358 + engines: {node: '>=6.9.0'} 359 + dependencies: 360 + '@babel/code-frame': 7.23.5 361 + '@babel/generator': 7.23.6 362 + '@babel/helper-environment-visitor': 7.22.20 363 + '@babel/helper-function-name': 7.23.0 364 + '@babel/helper-hoist-variables': 7.22.5 365 + '@babel/helper-split-export-declaration': 7.22.6 366 + '@babel/parser': 7.23.9 367 + '@babel/types': 7.23.9 368 + debug: 4.3.4 369 + globals: 11.12.0 370 + transitivePeerDependencies: 371 + - supports-color 372 + dev: true 373 + 283 374 /@babel/types@7.23.6: 284 375 resolution: {integrity: sha512-+uarb83brBzPKN38NX1MkB6vb6+mwvR6amUulqAE7ccQw1pEl+bCia9TbdG1lsnFP7lZySvUn37CHyXQdfTwzg==} 376 + engines: {node: '>=6.9.0'} 377 + dependencies: 378 + '@babel/helper-string-parser': 7.23.4 379 + '@babel/helper-validator-identifier': 7.22.20 380 + to-fast-properties: 2.0.0 381 + dev: true 382 + 383 + /@babel/types@7.23.9: 384 + resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==} 285 385 engines: {node: '>=6.9.0'} 286 386 dependencies: 287 387 '@babel/helper-string-parser': 7.23.4 ··· 1188 1288 resolution: {integrity: sha512-jgsaNduz+ndvGyFt3uSuWqvy4lCnIJiovtouQN5JZHOKCS2QuhEdbcQHFhVksz2N2U9hXJo8odG7ETyWlEeuDw==} 1189 1289 dev: true 1190 1290 1291 + /automd@0.2.0: 1292 + resolution: {integrity: sha512-uAt55rf9VJ+SiQMxfpRhQaY/ruzlYDBZsK7RqZGmwbI1CjtXBTUP8/t732decduuRGUMzgoQ01z5c5GsXf1bDg==} 1293 + hasBin: true 1294 + dependencies: 1295 + c12: 1.7.0 1296 + citty: 0.1.5 1297 + consola: 3.2.3 1298 + defu: 6.1.4 1299 + destr: 2.0.2 1300 + magic-string: 0.30.7 1301 + omark: 0.1.0 1302 + pkg-types: 1.0.3 1303 + scule: 1.3.0 1304 + untyped: 1.4.2 1305 + transitivePeerDependencies: 1306 + - supports-color 1307 + dev: true 1308 + 1191 1309 /autoprefixer@10.4.16(postcss@8.4.32): 1192 1310 resolution: {integrity: sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==} 1193 1311 engines: {node: ^10 || ^12 || >=14} ··· 1297 1415 rc9: 2.1.1 1298 1416 dev: true 1299 1417 1418 + /c12@1.7.0: 1419 + resolution: {integrity: sha512-luqIHUs5S5s4vcSa1TVIGxSC1dH8mBT8cxzRvrlHN/iZs+G/PkxsOb300ODuAdvRzUopyXYqg7cmdOGpcYaxwg==} 1420 + dependencies: 1421 + chokidar: 3.5.3 1422 + defu: 6.1.4 1423 + dotenv: 16.3.2 1424 + giget: 1.2.1 1425 + jiti: 1.21.0 1426 + json5: 2.2.3 1427 + jsonc-parser: 3.2.1 1428 + mlly: 1.5.0 1429 + ohash: 1.1.3 1430 + pathe: 1.1.2 1431 + perfect-debounce: 1.0.0 1432 + pkg-types: 1.0.3 1433 + rc9: 2.1.1 1434 + dev: true 1435 + 1300 1436 /cac@6.7.14: 1301 1437 resolution: {integrity: sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==} 1302 1438 engines: {node: '>=8'} ··· 3068 3204 '@jridgewell/sourcemap-codec': 1.4.15 3069 3205 dev: true 3070 3206 3207 + /magic-string@0.30.7: 3208 + resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==} 3209 + engines: {node: '>=12'} 3210 + dependencies: 3211 + '@jridgewell/sourcemap-codec': 1.4.15 3212 + dev: true 3213 + 3071 3214 /magicast@0.3.3: 3072 3215 resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==} 3073 3216 dependencies: ··· 3333 3476 3334 3477 /ohash@1.1.3: 3335 3478 resolution: {integrity: sha512-zuHHiGTYTA1sYJ/wZN+t5HKZaH23i4yI1HMwbuXm24Nid7Dv0KcuRlKoNKS9UNfAVSBlnGLcuQrnOKWOZoEGaw==} 3479 + 3480 + /omark@0.1.0: 3481 + resolution: {integrity: sha512-l+7hOfsjru88QuW7E937KH7BSz99NownkNTGigi+e4JzeSSCosMp2v3eVW1wdmgm99pFbzaUVg1kiT2V0QvvtQ==} 3482 + dev: true 3336 3483 3337 3484 /once@1.4.0: 3338 3485 resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} ··· 4010 4157 4011 4158 /scule@1.1.1: 4012 4159 resolution: {integrity: sha512-sHtm/SsIK9BUBI3EFT/Gnp9VoKfY6QLvlkvAE6YK7454IF8FSgJEAnJpVdSC7K5/pjI5NfxhzBLW2JAfYA/shQ==} 4160 + dev: true 4161 + 4162 + /scule@1.3.0: 4163 + resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==} 4013 4164 dev: true 4014 4165 4015 4166 /semver@5.7.2: ··· 4467 4618 jiti: 1.21.0 4468 4619 mri: 1.2.0 4469 4620 scule: 1.1.1 4621 + transitivePeerDependencies: 4622 + - supports-color 4623 + dev: true 4624 + 4625 + /untyped@1.4.2: 4626 + resolution: {integrity: sha512-nC5q0DnPEPVURPhfPQLahhSTnemVtPzdx7ofiRxXpOB2SYnb3MfdU3DVGyJdS8Lx+tBWeAePO8BfU/3EgksM7Q==} 4627 + hasBin: true 4628 + dependencies: 4629 + '@babel/core': 7.23.9 4630 + '@babel/standalone': 7.23.10 4631 + '@babel/types': 7.23.6 4632 + defu: 6.1.4 4633 + jiti: 1.21.0 4634 + mri: 1.2.0 4635 + scule: 1.3.0 4470 4636 transitivePeerDependencies: 4471 4637 - supports-color 4472 4638 dev: true