@visulima/fs 5.0.0-alpha.12 → 5.0.0-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,145 +0,0 @@
1
- import { PathLike, Dirent } from 'node:fs';
2
- import { GlobOptions as GlobOptions$1 } from 'tinyglobby';
3
- import { DocumentOptions, ParseOptions, SchemaOptions, ToJSOptions, CreateNodeOptions, ToStringOptions } from './options';
4
- declare const F_OK: number;
5
- declare const R_OK: number;
6
- declare const W_OK: number;
7
- declare const X_OK: number;
8
- declare const FIND_UP_STOP: symbol;
9
- type ColorizeMethod = (value: string) => string;
10
- type JsoncParseOptions = {
11
- allowEmptyContent?: boolean;
12
- allowTrailingComma?: boolean;
13
- disallowComments?: boolean;
14
- };
15
- type JsoncFormattingOptions = {
16
- eol?: string;
17
- insertFinalNewline?: boolean;
18
- insertSpaces?: boolean;
19
- keepLines?: boolean;
20
- tabSize?: number;
21
- };
22
- type IniEncodeOptions = {
23
- align?: boolean;
24
- bracketedArray?: boolean;
25
- newline?: boolean;
26
- platform?: string;
27
- section?: string;
28
- sort?: boolean;
29
- whitespace?: boolean;
30
- };
31
- type Json5Replacer = (number | string)[] | ((this: unknown, key: string, value: unknown) => unknown) | null;
32
- type GlobOptions = Omit<GlobOptions$1, "patterns">;
33
- interface WalkOptions {
34
- extensions?: string[];
35
- followSymlinks?: boolean;
36
- includeDirs?: boolean;
37
- includeFiles?: boolean;
38
- includeSymlinks?: boolean;
39
- match?: (RegExp | string)[];
40
- maxDepth?: number;
41
- skip?: (RegExp | string)[];
42
- }
43
- interface WalkEntry extends Pick<Dirent, "isDirectory" | "isFile" | "isSymbolicLink" | "name"> {
44
- path: string;
45
- }
46
- type CompressionType = "brotli" | "gzip" | "none";
47
- type ReadFileEncoding = "ascii" | "base64" | "base64url" | "hex" | "latin1" | "ucs-2" | "ucs2" | "utf-8" | "utf-16le" | "utf8" | "utf16le";
48
- type ReadFileOptions<C> = {
49
- buffer?: boolean;
50
- compression?: C;
51
- encoding?: ReadFileEncoding;
52
- flag?: number | string;
53
- };
54
- type ContentType<O = undefined> = O extends {
55
- buffer: true;
56
- } ? Buffer : string;
57
- type JsonReviver = Parameters<(typeof JSON)["parse"]>["1"];
58
- type CodeFrameLocation = {
59
- column?: number;
60
- line: number;
61
- };
62
- type CodeFrameOptions = {
63
- color?: {
64
- gutter?: ColorizeMethod;
65
- marker?: ColorizeMethod;
66
- message?: ColorizeMethod;
67
- };
68
- };
69
- type ReadJsonOptions = CodeFrameOptions & {
70
- beforeParse?: (source: string) => string;
71
- };
72
- type WriteFileOptions = {
73
- chown?: {
74
- gid: number;
75
- uid: number;
76
- };
77
- encoding?: BufferEncoding | null;
78
- flag?: string;
79
- mode?: number;
80
- overwrite?: boolean;
81
- recursive?: boolean;
82
- };
83
- type JsonReplacer = (number | string)[] | ((this: unknown, key: string, value: unknown) => unknown) | null;
84
- type YamlReplacer = JsonReplacer;
85
- type WriteJsonOptions = WriteFileOptions & {
86
- detectIndent?: boolean;
87
- indent?: number | string;
88
- replacer?: JsonReplacer;
89
- stringify?: (data: unknown, replacer: JsonReplacer, space: number | string | undefined) => string;
90
- };
91
- type FindUpOptions = {
92
- allowSymlinks?: boolean;
93
- cwd?: URL | string;
94
- stopAt?: URL | string;
95
- type?: "directory" | "file";
96
- };
97
- type FindUpNameFnResult = PathLike | Promise<PathLike | typeof FIND_UP_STOP> | typeof FIND_UP_STOP | undefined;
98
- type FindUpName = string[] | string | ((directory: string) => FindUpNameFnResult);
99
- type FindUpNameSyncFnResult = PathLike | typeof FIND_UP_STOP | undefined;
100
- type FindUpNameSync = string[] | string | ((directory: string) => FindUpNameSyncFnResult);
101
- type RetryOptions = {
102
- maxRetries?: number;
103
- retryDelay?: number;
104
- };
105
- type ReadYamlOptions<C> = DocumentOptions & ParseOptions & ReadFileOptions<C> & SchemaOptions & ToJSOptions;
106
- type YamlReviver = (key: unknown, value: unknown) => unknown;
107
- type WriteYamlExtras = {
108
- replacer?: JsonReplacer;
109
- space?: number | string;
110
- };
111
- type WriteYamlOptions = CreateNodeOptions & DocumentOptions & ParseOptions & SchemaOptions & ToStringOptions & WriteFileOptions & WriteYamlExtras;
112
- type ReadTomlOptions<C> = ReadFileOptions<C>;
113
- type WriteTomlOptions = WriteFileOptions;
114
- type ReadJsoncExtras = {
115
- beforeParse?: (source: string) => string;
116
- };
117
- type ReadJsoncOptions<C> = CodeFrameOptions & JsoncParseOptions & ReadFileOptions<C> & ReadJsoncExtras;
118
- type WriteJsoncOptions = WriteFileOptions & {
119
- detectIndent?: boolean;
120
- formattingOptions?: JsoncFormattingOptions;
121
- indent?: number | string;
122
- preserveComments?: boolean;
123
- replacer?: JsonReplacer;
124
- };
125
- type Json5Reviver = (this: unknown, key: string, value: unknown) => unknown;
126
- type ReadJson5Extras = {
127
- beforeParse?: (source: string) => string;
128
- };
129
- type ReadJson5Options<C> = CodeFrameOptions & ReadFileOptions<C> & ReadJson5Extras;
130
- type WriteJson5Options = WriteFileOptions & {
131
- detectIndent?: boolean;
132
- indent?: number | string;
133
- quote?: string;
134
- replacer?: Json5Replacer;
135
- };
136
- type ReadIniOptions<C> = ReadFileOptions<C> & {
137
- bracketedArray?: boolean;
138
- };
139
- type IniLineEnding = "\n" | "\r\n";
140
- type WriteIniExtras = {
141
- eol?: IniLineEnding;
142
- preserveStyle?: boolean;
143
- };
144
- type WriteIniOptions = IniEncodeOptions & WriteFileOptions & WriteIniExtras;
145
- export { CodeFrameLocation as A, FIND_UP_STOP as B, CodeFrameOptions as C, F_OK as D, FindUpNameFnResult as E, FindUpName as F, GlobOptions as G, FindUpNameSyncFnResult as H, IniEncodeOptions as I, JsonReviver as J, R_OK as K, ReadFileEncoding as L, W_OK as M, ReadYamlOptions as R, WriteYamlOptions as W, X_OK as X, YamlReviver as Y, CompressionType as a, JsonReplacer as b, YamlReplacer as c, ReadJsoncOptions as d, WriteJsoncOptions as e, JsoncFormattingOptions as f, JsoncParseOptions as g, ReadTomlOptions as h, WriteTomlOptions as i, ReadJson5Options as j, Json5Reviver as k, WriteJson5Options as l, Json5Replacer as m, ReadIniOptions as n, WriteIniOptions as o, IniLineEnding as p, WalkOptions as q, FindUpOptions as r, FindUpNameSync as s, WalkEntry as t, ReadFileOptions as u, ContentType as v, ReadJsonOptions as w, RetryOptions as x, WriteFileOptions as y, WriteJsonOptions as z };