UNPKG

msync

Version:

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

42 lines (41 loc) 1.15 kB
import { ISettings, 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; '--no-formatting': string; }; export declare function cmd(args?: { params: string[]; options: { D?: boolean; i?: boolean; p?: boolean; n?: boolean; formatting?: boolean; }; }): Promise<void>; export declare type DisplayDependencies = 'none' | 'local' | 'all'; export interface IOptions { basePath?: string; dependencies?: DisplayDependencies; includeIgnored?: boolean; showPath?: boolean; formatting?: boolean; dependants?: IModule[]; npm?: boolean; columns?: ITableColumn[]; } export interface ITableColumn { head?: string; render: (data: any) => string; } export declare function ls(options?: IOptions): Promise<{ modules: IModule[]; settings: ISettings; } | undefined>; export declare function printTable(modules: IModule[], options?: IOptions): void;