サンプル
search and load configuration file using cosmiconfig
sha256:26b7509992f940548573383616ac6d1641f47af2e96d95ce95cbd6beb7bc049c
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 1
- ビルドした署名鍵
- 1
宣言された環境
linux 24 · ubuntu · glibc 2.39 x64 npm
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5… |
2026-08-23 |
ケース
HOW- ゴール
- search and load configuration file using cosmiconfig
- パッケージ
- シンボル
-
- cosmiconfig
- cosmiconfigSync
- 作成日
- 2026-08-23T15:50:54Z
コントラクト
- cosmiconfig and cosmiconfigSync return explorer instances with search, load, clearLoadCache, clearSearchCache, and clearCaches methods
- default searchStrategy is none which searches only the starting directory without parent directory traversal
- searchStrategy project searches upward through parent directories until configuration is found
- cosmiconfigSync search with searchStrategy project synchronously searches upward through parent directories
- specifying stopDir implicitly sets searchStrategy to global and traverses parent directories up to stopDir
- specifying stopDir with searchStrategy project or none throws an error
- cosmiconfig load parses YAML configuration files asynchronously
- cosmiconfigSync load parses CommonJS configuration files synchronously
- cosmiconfig load supports custom loaders for non-standard file extensions
- cosmiconfig search returns null when no configuration file is found
- cosmiconfig caches loaded configuration and returns fresh copies after clearCaches
ファイル
- PROMPT.md
- csx.json
- package-lock.json
- package.json
- spec.json
- test/contract.mjs
- test/fixtures/custom.conf
- test/fixtures/js-config/sampleapp.config.cjs
- test/fixtures/json-config/.sampleapprc.json
- test/fixtures/nested/.sampleapprc.json
- test/fixtures/yaml-config/.sampleapprc.yaml
オリジンシーダー
匿名