UNPKG

msync

Version:

Easily manage building and syncing multiple node-modules in a flexibly defined workspace.

45 lines (44 loc) 1.24 kB
import { IModule } from '../common'; export declare const name = "ls"; export declare const alias = "l"; export declare const description = "Lists modules in dependency order."; export declare const args: { '-D': string; '-i': string; '-p': string; '-n': string; '--save': string; '--no-formatting': string; }; export declare function cmd(args?: { params: string[]; options: { D?: boolean; i?: boolean; p?: boolean; n?: boolean; formatting?: boolean; save?: boolean | string; }; }): Promise<void>; export declare type DisplayDependencies = 'none' | 'local' | 'all'; export interface TableColumn { head?: string; render: (data: any) => string; } export interface ListOptions { basePath?: string; dependencies?: DisplayDependencies; includeIgnored?: boolean; showPath?: boolean; formatting?: boolean; dependants?: IModule[]; npm?: boolean; columns?: TableColumn[]; savePath?: string; } export declare function ls(options?: ListOptions): Promise<{ modules: IModule[]; settings: import("../common").ISettings; } | undefined>; export declare function printTable(modules: IModule[], options?: ListOptions): void;