文件操作 - index.d.cts
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/node_modules/confbox/dist/index.d.cts
编辑文件内容
export { JSON5ParseOptions, JSON5StringifyOptions, parseJSON5, stringifyJSON5 } from './json5.cjs'; export { JSONCParseError, JSONCParseOptions, parseJSONC, stringifyJSONC } from './jsonc.cjs'; export { YAMLParseOptions, YAMLStringifyOptions, parseYAML, stringifyYAML } from './yaml.cjs'; import { F as FormatOptions } from './shared/confbox.9745c98f.cjs'; export { parseTOML, stringifyTOML } from './toml.cjs'; /** * Converts a [JSON](https://www.json.org/json-en.html) string into an object. * * Indentation status is auto-detected and preserved when stringifying back using `stringifyJSON` */ declare function parseJSON<T = unknown>(text: string, options?: JSONParseOptions): T; /** * Converts a JavaScript value to a [JSON](https://www.json.org/json-en.html) string. * * Indentation status is auto detected and preserved when using value from parseJSON. */ declare function stringifyJSON(value: any, options?: JSONStringifyOptions): string; interface JSONParseOptions extends FormatOptions { /** * A function that transforms the results. This function is called for each member of the object. */ reviver?: (this: any, key: string, value: any) => any; } interface JSONStringifyOptions extends FormatOptions { /** * A function that transforms the results. This function is called for each member of the object. */ replacer?: (this: any, key: string, value: any) => any; } export { type JSONParseOptions, type JSONStringifyOptions, parseJSON, stringifyJSON };
修改文件时间
将文件时间修改为当前时间的前一年
删除文件