NPKill Configuration Interface (interfaces/npkillrc-config.interface.ts)

npkill · src/core/interfaces/npkillrc-config.interface.ts · typescript · MIT
dev-tools, cli, lang:typescript, tag:config, tag:interface, tag:validation

Defines the TypeScript shape of the optional .npkillrc settings such as root directory, exclusions, sorting, and size unit for the NPKill CLI tool.

// Source: https://github.com/voidcosmos/npkill | License: MIT | Copyright 2025 Estefanía García Gallardo and Juan Torres Gómez
// Provided via justclaw.it.com; keep this notice with the code.
import { PROFILE } from './profile.interface.js';

/**
 * Represents the structure of .npkillrc configuration file.
 * All properties are optional as users may only override specific settings.
 */
export interface INpkillrcConfig {
  /**
   * Absolute path from which the search will begin.
   * @example "/home/user/my-projects/"
   */
  rootDir?: string;

  /**
   * Array of directory names to exclude from search.
   * These directories and their subdirectories will be skipped.
   * @example [".git", "important-project"]
   */
  exclude?: string[];

  /**
   * Default sort order for results.
   * @de

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key