kuamail/node_modules/lilconfig
Kavi f1a2d385f3 feat(kuamail): Gmail-exact mail client SPA — initial release
React 19 + Vite + TanStack Router/Query + Tailwind. Gmail-exact UI:
- ThreadRow: 40px density, hover action icons, unread stripe
- Sidebar: compose button, folder list, labels
- MessageCard: expandable headers, reply/forward
- MessageReader: full Gmail toolbar
- SearchBar: pill with filter icon
- Production: nginx container with /api proxy to api.mail.kua.cl

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 03:08:44 -04:00
..
src feat(kuamail): Gmail-exact mail client SPA — initial release 2026-04-22 03:08:44 -04:00
LICENSE feat(kuamail): Gmail-exact mail client SPA — initial release 2026-04-22 03:08:44 -04:00
package.json feat(kuamail): Gmail-exact mail client SPA — initial release 2026-04-22 03:08:44 -04:00
readme.md feat(kuamail): Gmail-exact mail client SPA — initial release 2026-04-22 03:08:44 -04:00

readme.md

Lilconfig ⚙️

npm version install size Coverage Status

A zero-dependency alternative to cosmiconfig with the same API.

Installation

npm install lilconfig

Usage

import {lilconfig, lilconfigSync} from 'lilconfig';

// all keys are optional
const options = {
    stopDir: '/Users/you/some/dir',
    searchPlaces: ['package.json', 'myapp.conf.js'],
    ignoreEmptySearchPlaces: false
}

lilconfig(
    'myapp',
    options // optional
).search() // Promise<LilconfigResult>

lilconfigSync(
    'myapp',
    options // optional
).load(pathToConfig) // LilconfigResult

/**
 * LilconfigResult
 * {
 *   config: any; // your config
 *   filepath: string;
 * }
 */

ESM

ESM configs can be loaded with async API only. Specifically js files in projects with "type": "module" in package.json or mjs files.

Difference to cosmiconfig

Lilconfig does not intend to be 100% compatible with cosmiconfig but tries to mimic it where possible. The key difference is no support for yaml files out of the box(lilconfig attempts to parse files with no extension as JSON instead of YAML). You can still add the support for YAML files by providing a loader, see an example below.

Options difference between the two.

cosmiconfig option lilconfig
cache
loaders
ignoreEmptySearchPlaces
packageProp
searchPlaces
stopDir
transform

Loaders examples

Yaml loader

If you need the YAML support you can provide your own loader

import {lilconfig} from 'lilconfig';
import yaml from 'yaml';

function loadYaml(filepath, content) {
    return yaml.parse(content);
}

const options = {
    loaders: {
        '.yaml': loadYaml,
        '.yml': loadYaml,
        // loader for files with no extension
        noExt: loadYaml
    }
};

lilconfig('myapp', options)
    .search()
    .then(result => {
        result // {config, filepath}
    });

Version correlation

  • lilconig v1 → cosmiconfig v6
  • lilconig v2 → cosmiconfig v7
  • lilconig v3 → cosmiconfig v8