文件操作 - index.d.ts
返回文件管理
返回主菜单
删除本文件
文件: /usr/share/nodejs/@types/cli-table/index.d.ts
编辑文件内容
// Type definitions for cli-table 0.3 // Project: https://github.com/Automattic/cli-table // Definitions by: AryloYeung <https://github.com/arylo> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 interface TableOptions { chars: Partial<Record<( 'top' | 'top-mid' | 'top-left' | 'top-right' | 'bottom' | 'bottom-mid' | 'bottom-left' | 'bottom-right' | 'left' | 'left-mid' | 'mid' | 'mid-mid' | 'right' | 'right-mid' | 'middle' ), string>>; truncate: string; colors: boolean; colWidths: number[]; colAligns: Array<"left" | "middle" | "right">; style: Partial<{ 'padding-left': number; 'padding-right': number; head: string[]; border: string[]; compact: boolean; }>; head: string[]; } declare class Table extends Array { constructor(options?: Partial<TableOptions>); toString(): string; static version: string; } export = Table;
修改文件时间
将文件时间修改为当前时间的前一年
删除文件