@dotpi/tools 2.9.2 → 2.9.4
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.
- package/dotpi_root/dist/@dotpi/avahi-monitor-module/LICENSE +28 -0
- package/dotpi_root/dist/@dotpi/avahi-monitor-module/package.json +3 -2
- package/dotpi_root/dist/@dotpi/javascript/LICENSE +28 -0
- package/dotpi_root/dist/@dotpi/javascript/package.json +3 -2
- package/dotpi_root/dist/@dotpi/module/LICENSE +28 -0
- package/dotpi_root/dist/@dotpi/module/package.json +4 -3
- package/dotpi_root/dist/@dotpi/module-module/LICENSE +28 -0
- package/dotpi_root/dist/@dotpi/module-module/package.json +5 -4
- package/package.json +5 -5
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/javascript/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/javascript/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/javascript/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/javascript/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/javascript/node_modules/strip-final-newline/readme.md +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.d.ts +0 -279
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/index.js +0 -292
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/figures/readme.md +0 -337
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/ignore.js +0 -109
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.d.ts +0 -207
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/index.js +0 -264
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.d.ts +0 -44
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/index.js +0 -223
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/@sindresorhus/merge-streams/readme.md +0 -53
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/default.js +0 -14
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/index.d.ts +0 -29
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/node.js +0 -7
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/node_modules/unicorn-magic/readme.md +0 -25
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/package.json +0 -94
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/readme.md +0 -177
- package/dotpi_root/dist/@dotpi/module/node_modules/globby/utilities.js +0 -1
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/LICENSE +0 -201
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/README.md +0 -180
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/core.js +0 -273
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.d.ts +0 -206
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/main.js +0 -70
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/realtime.js +0 -16
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/build/src/signals.js +0 -34
- package/dotpi_root/dist/@dotpi/module/node_modules/human-signals/package.json +0 -64
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.d.ts +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/index.js +0 -8
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/is-plain-obj/readme.md +0 -58
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.d.ts +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/index.js +0 -21
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/is-unicode-supported/readme.md +0 -35
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.d.ts +0 -90
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/index.js +0 -55
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/package.json +0 -52
- package/dotpi_root/dist/@dotpi/module/node_modules/npm-run-path/readme.md +0 -104
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.d.ts +0 -31
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/index.js +0 -12
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/package.json +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-key/readme.md +0 -57
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.d.ts +0 -51
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/index.js +0 -41
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/package.json +0 -47
- package/dotpi_root/dist/@dotpi/module/node_modules/path-type/readme.md +0 -74
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.d.ts +0 -23
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/index.js +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/package.json +0 -39
- package/dotpi_root/dist/@dotpi/module/node_modules/slash/readme.md +0 -36
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.d.ts +0 -18
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/index.js +0 -26
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/license +0 -9
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/package.json +0 -49
- package/dotpi_root/dist/@dotpi/module/node_modules/strip-final-newline/readme.md +0 -34
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
# figures
|
|
2
|
-
|
|
3
|
-
> Unicode symbols with fallbacks for older terminals
|
|
4
|
-
|
|
5
|
-
[](index.js)
|
|
6
|
-
|
|
7
|
-
[*and more...*](index.js)
|
|
8
|
-
|
|
9
|
-
Terminals such as Windows Console Host (and CMD) only support a [limited character set](http://en.wikipedia.org/wiki/Code_page_437).
|
|
10
|
-
|
|
11
|
-
## Install
|
|
12
|
-
|
|
13
|
-
```sh
|
|
14
|
-
npm install figures
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
import figures, {mainSymbols, fallbackSymbols, replaceSymbols} from 'figures';
|
|
21
|
-
|
|
22
|
-
console.log(figures.tick);
|
|
23
|
-
// On terminals with Unicode symbols: ✔
|
|
24
|
-
// On other terminals: √
|
|
25
|
-
|
|
26
|
-
console.log(mainSymbols.tick);
|
|
27
|
-
// On all terminals: ✔
|
|
28
|
-
|
|
29
|
-
console.log(fallbackSymbols.tick);
|
|
30
|
-
// On all terminals: √
|
|
31
|
-
|
|
32
|
-
console.log(replaceSymbols('✔ check'));
|
|
33
|
-
// On terminals with Unicode symbols: ✔ check
|
|
34
|
-
// On other terminals: √ check
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
## API
|
|
38
|
-
|
|
39
|
-
### figures (default export)
|
|
40
|
-
|
|
41
|
-
Type: `object`
|
|
42
|
-
|
|
43
|
-
Symbols to use on any terminal.
|
|
44
|
-
|
|
45
|
-
### mainSymbols
|
|
46
|
-
|
|
47
|
-
Symbols to use when the terminal supports Unicode symbols.
|
|
48
|
-
|
|
49
|
-
### fallbackSymbols
|
|
50
|
-
|
|
51
|
-
Symbols to use when the terminal does not support Unicode symbols.
|
|
52
|
-
|
|
53
|
-
### replaceSymbols(string, options?)
|
|
54
|
-
|
|
55
|
-
Returns the input with replaced fallback symbols if the terminal has poor Unicode support.
|
|
56
|
-
|
|
57
|
-
All the below [figures](#figures) are attached to the default export as shown in the example above.
|
|
58
|
-
|
|
59
|
-
#### string
|
|
60
|
-
|
|
61
|
-
Type: `string`
|
|
62
|
-
|
|
63
|
-
String where the Unicode symbols will be replaced with fallback symbols depending on the terminal.
|
|
64
|
-
|
|
65
|
-
#### options
|
|
66
|
-
|
|
67
|
-
Type: `object`
|
|
68
|
-
|
|
69
|
-
##### useFallback
|
|
70
|
-
|
|
71
|
-
Type: `boolean`\
|
|
72
|
-
Default: `true` if the terminal has poor Unicode support
|
|
73
|
-
|
|
74
|
-
Whether to replace symbols with fallbacks.
|
|
75
|
-
|
|
76
|
-
This can be set to `true` to always use fallback symbols, whether the terminal has poor Unicode support or not.
|
|
77
|
-
|
|
78
|
-
```js
|
|
79
|
-
import {replaceSymbols} from 'figures';
|
|
80
|
-
|
|
81
|
-
console.log(replaceSymbols('✔ check', {useFallback: true}));
|
|
82
|
-
// On terminals with Unicode symbols: √ check
|
|
83
|
-
// On other terminals: √ check
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
## Figures
|
|
87
|
-
|
|
88
|
-
`Fallback` characters are only shown when they differ from the `Main` ones.
|
|
89
|
-
|
|
90
|
-
| Name | Main | Fallback |
|
|
91
|
-
| ------------------------------------------- | :--: | :------: |
|
|
92
|
-
| tick | `✔` | `√` |
|
|
93
|
-
| info | `ℹ` | `i` |
|
|
94
|
-
| warning | `⚠` | `‼` |
|
|
95
|
-
| cross | `✘` | `×` |
|
|
96
|
-
| square | `█` | |
|
|
97
|
-
| squareSmall | `◻` | `□` |
|
|
98
|
-
| squareSmallFilled | `◼` | `■` |
|
|
99
|
-
| squareDarkShade | `▓` | |
|
|
100
|
-
| squareMediumShade | `▒` | |
|
|
101
|
-
| squareLightShade | `░` | |
|
|
102
|
-
| squareTop | `▀` | |
|
|
103
|
-
| squareBottom | `▄` | |
|
|
104
|
-
| squareLeft | `▌` | |
|
|
105
|
-
| squareRight | `▐` | |
|
|
106
|
-
| squareCenter | `■` | |
|
|
107
|
-
| circle | `◯` | `( )` |
|
|
108
|
-
| circleFilled | `◉` | `(*)` |
|
|
109
|
-
| circleDotted | `◌` | `( )` |
|
|
110
|
-
| circleDouble | `◎` | `( )` |
|
|
111
|
-
| circleCircle | `ⓞ` | `(○)` |
|
|
112
|
-
| circleCross | `ⓧ` | `(×)` |
|
|
113
|
-
| circlePipe | `Ⓘ` | `(│)` |
|
|
114
|
-
| circleQuestionMark | `?⃝ ` | `(?)` |
|
|
115
|
-
| radioOn | `◉` | `(*)` |
|
|
116
|
-
| radioOff | `◯` | `( )` |
|
|
117
|
-
| checkboxOn | `☒` | `[×]` |
|
|
118
|
-
| checkboxOff | `☐` | `[ ]` |
|
|
119
|
-
| checkboxCircleOn | `ⓧ` | `(×)` |
|
|
120
|
-
| checkboxCircleOff | `Ⓘ` | `( )` |
|
|
121
|
-
| questionMarkPrefix | `?⃝ ` | `?` |
|
|
122
|
-
| bullet | `●` | |
|
|
123
|
-
| dot | `․` | |
|
|
124
|
-
| ellipsis | `…` | |
|
|
125
|
-
| pointer | `❯` | `>` |
|
|
126
|
-
| pointerSmall | `›` | `›` |
|
|
127
|
-
| triangleUp | `▲` | |
|
|
128
|
-
| triangleUpSmall | `▴` | |
|
|
129
|
-
| triangleUpOutline | `△` | `∆` |
|
|
130
|
-
| triangleDown | `▼` | |
|
|
131
|
-
| triangleDownSmall | `▾` | |
|
|
132
|
-
| triangleLeft | `◀` | `◄` |
|
|
133
|
-
| triangleLeftSmall | `◂` | |
|
|
134
|
-
| triangleRight | `▶` | `►` |
|
|
135
|
-
| triangleRightSmall | `▸` | |
|
|
136
|
-
| lozenge | `◆` | `♦` |
|
|
137
|
-
| lozengeOutline | `◇` | `◊` |
|
|
138
|
-
| home | `⌂` | |
|
|
139
|
-
| hamburger | `☰` | `≡` |
|
|
140
|
-
| smiley | `㋡` | `☺` |
|
|
141
|
-
| mustache | `෴` | `┌─┐` |
|
|
142
|
-
| heart | `♥` | |
|
|
143
|
-
| star | `★` | `✶` |
|
|
144
|
-
| play | `▶` | `►` |
|
|
145
|
-
| musicNote | `♪` | |
|
|
146
|
-
| musicNoteBeamed | `♫` | |
|
|
147
|
-
| nodejs | `⬢` | `♦` |
|
|
148
|
-
| arrowUp | `↑` | |
|
|
149
|
-
| arrowDown | `↓` | |
|
|
150
|
-
| arrowLeft | `←` | |
|
|
151
|
-
| arrowRight | `→` | |
|
|
152
|
-
| arrowLeftRight | `↔` | |
|
|
153
|
-
| arrowUpDown | `↕` | |
|
|
154
|
-
| almostEqual | `≈` | |
|
|
155
|
-
| notEqual | `≠` | |
|
|
156
|
-
| lessOrEqual | `≤` | |
|
|
157
|
-
| greaterOrEqual | `≥` | |
|
|
158
|
-
| identical | `≡` | |
|
|
159
|
-
| infinity | `∞` | |
|
|
160
|
-
| subscriptZero | `₀` | |
|
|
161
|
-
| subscriptOne | `₁` | |
|
|
162
|
-
| subscriptTwo | `₂` | |
|
|
163
|
-
| subscriptThree | `₃` | |
|
|
164
|
-
| subscriptFour | `₄` | |
|
|
165
|
-
| subscriptFive | `₅` | |
|
|
166
|
-
| subscriptSix | `₆` | |
|
|
167
|
-
| subscriptSeven | `₇` | |
|
|
168
|
-
| subscriptEight | `₈` | |
|
|
169
|
-
| subscriptNine | `₉` | |
|
|
170
|
-
| oneHalf | `½` | |
|
|
171
|
-
| oneThird | `⅓` | |
|
|
172
|
-
| oneQuarter | `¼` | |
|
|
173
|
-
| oneFifth | `⅕` | |
|
|
174
|
-
| oneSixth | `⅙` | |
|
|
175
|
-
| oneSeventh | `⅐` | `1/7` |
|
|
176
|
-
| oneEighth | `⅛` | |
|
|
177
|
-
| oneNinth | `⅑` | `1/9` |
|
|
178
|
-
| oneTenth | `⅒` | `1/10` |
|
|
179
|
-
| twoThirds | `⅔` | |
|
|
180
|
-
| twoFifths | `⅖` | |
|
|
181
|
-
| threeQuarters | `¾` | |
|
|
182
|
-
| threeFifths | `⅗` | |
|
|
183
|
-
| threeEighths | `⅜` | |
|
|
184
|
-
| fourFifths | `⅘` | |
|
|
185
|
-
| fiveSixths | `⅚` | |
|
|
186
|
-
| fiveEighths | `⅝` | |
|
|
187
|
-
| sevenEighths | `⅞` | |
|
|
188
|
-
| line | `─` | |
|
|
189
|
-
| lineBold | `━` | |
|
|
190
|
-
| lineDouble | `═` | |
|
|
191
|
-
| lineDashed0 | `┄` | |
|
|
192
|
-
| lineDashed1 | `┅` | |
|
|
193
|
-
| lineDashed2 | `┈` | |
|
|
194
|
-
| lineDashed3 | `┉` | |
|
|
195
|
-
| lineDashed4 | `╌` | |
|
|
196
|
-
| lineDashed5 | `╍` | |
|
|
197
|
-
| lineDashed6 | `╴` | |
|
|
198
|
-
| lineDashed7 | `╶` | |
|
|
199
|
-
| lineDashed8 | `╸` | |
|
|
200
|
-
| lineDashed9 | `╺` | |
|
|
201
|
-
| lineDashed10 | `╼` | |
|
|
202
|
-
| lineDashed11 | `╾` | |
|
|
203
|
-
| lineDashed12 | `−` | |
|
|
204
|
-
| lineDashed13 | `–` | |
|
|
205
|
-
| lineDashed14 | `‐` | |
|
|
206
|
-
| lineDashed15 | `⁃` | |
|
|
207
|
-
| lineVertical | `│` | |
|
|
208
|
-
| lineVerticalBold | `┃` | |
|
|
209
|
-
| lineVerticalDouble | `║` | |
|
|
210
|
-
| lineVerticalDashed0 | `┆` | |
|
|
211
|
-
| lineVerticalDashed1 | `┇` | |
|
|
212
|
-
| lineVerticalDashed2 | `┊` | |
|
|
213
|
-
| lineVerticalDashed3 | `┋` | |
|
|
214
|
-
| lineVerticalDashed4 | `╎` | |
|
|
215
|
-
| lineVerticalDashed5 | `╏` | |
|
|
216
|
-
| lineVerticalDashed6 | `╵` | |
|
|
217
|
-
| lineVerticalDashed7 | `╷` | |
|
|
218
|
-
| lineVerticalDashed8 | `╹` | |
|
|
219
|
-
| lineVerticalDashed9 | `╻` | |
|
|
220
|
-
| lineVerticalDashed10 | `╽` | |
|
|
221
|
-
| lineVerticalDashed11 | `╿` | |
|
|
222
|
-
| lineDownLeft | `┐` | |
|
|
223
|
-
| lineDownLeftArc | `╮` | |
|
|
224
|
-
| lineDownBoldLeftBold | `┓` | |
|
|
225
|
-
| lineDownBoldLeft | `┒` | |
|
|
226
|
-
| lineDownLeftBold | `┑` | |
|
|
227
|
-
| lineDownDoubleLeftDouble | `╗` | |
|
|
228
|
-
| lineDownDoubleLeft | `╖` | |
|
|
229
|
-
| lineDownLeftDouble | `╕` | |
|
|
230
|
-
| lineDownRight | `┌` | |
|
|
231
|
-
| lineDownRightArc | `╭` | |
|
|
232
|
-
| lineDownBoldRightBold | `┏` | |
|
|
233
|
-
| lineDownBoldRight | `┎` | |
|
|
234
|
-
| lineDownRightBold | `┍` | |
|
|
235
|
-
| lineDownDoubleRightDouble | `╔` | |
|
|
236
|
-
| lineDownDoubleRight | `╓` | |
|
|
237
|
-
| lineDownRightDouble | `╒` | |
|
|
238
|
-
| lineUpLeft | `┘` | |
|
|
239
|
-
| lineUpLeftArc | `╯` | |
|
|
240
|
-
| lineUpBoldLeftBold | `┛` | |
|
|
241
|
-
| lineUpBoldLeft | `┚` | |
|
|
242
|
-
| lineUpLeftBold | `┙` | |
|
|
243
|
-
| lineUpDoubleLeftDouble | `╝` | |
|
|
244
|
-
| lineUpDoubleLeft | `╜` | |
|
|
245
|
-
| lineUpLeftDouble | `╛` | |
|
|
246
|
-
| lineUpRight | `└` | |
|
|
247
|
-
| lineUpRightArc | `╰` | |
|
|
248
|
-
| lineUpBoldRightBold | `┗` | |
|
|
249
|
-
| lineUpBoldRight | `┖` | |
|
|
250
|
-
| lineUpRightBold | `┕` | |
|
|
251
|
-
| lineUpDoubleRightDouble | `╚` | |
|
|
252
|
-
| lineUpDoubleRight | `╙` | |
|
|
253
|
-
| lineUpRightDouble | `╘` | |
|
|
254
|
-
| lineUpDownLeft | `┤` | |
|
|
255
|
-
| lineUpBoldDownBoldLeftBold | `┫` | |
|
|
256
|
-
| lineUpBoldDownBoldLeft | `┨` | |
|
|
257
|
-
| lineUpDownLeftBold | `┥` | |
|
|
258
|
-
| lineUpBoldDownLeftBold | `┩` | |
|
|
259
|
-
| lineUpDownBoldLeftBold | `┪` | |
|
|
260
|
-
| lineUpDownBoldLeft | `┧` | |
|
|
261
|
-
| lineUpBoldDownLeft | `┦` | |
|
|
262
|
-
| lineUpDoubleDownDoubleLeftDouble | `╣` | |
|
|
263
|
-
| lineUpDoubleDownDoubleLeft | `╢` | |
|
|
264
|
-
| lineUpDownLeftDouble | `╡` | |
|
|
265
|
-
| lineUpDownRight | `├` | |
|
|
266
|
-
| lineUpBoldDownBoldRightBold | `┣` | |
|
|
267
|
-
| lineUpBoldDownBoldRight | `┠` | |
|
|
268
|
-
| lineUpDownRightBold | `┝` | |
|
|
269
|
-
| lineUpBoldDownRightBold | `┡` | |
|
|
270
|
-
| lineUpDownBoldRightBold | `┢` | |
|
|
271
|
-
| lineUpDownBoldRight | `┟` | |
|
|
272
|
-
| lineUpBoldDownRight | `┞` | |
|
|
273
|
-
| lineUpDoubleDownDoubleRightDouble | `╠` | |
|
|
274
|
-
| lineUpDoubleDownDoubleRight | `╟` | |
|
|
275
|
-
| lineUpDownRightDouble | `╞` | |
|
|
276
|
-
| lineDownLeftRight | `┬` | |
|
|
277
|
-
| lineDownBoldLeftBoldRightBold | `┳` | |
|
|
278
|
-
| lineDownLeftBoldRightBold | `┯` | |
|
|
279
|
-
| lineDownBoldLeftRight | `┰` | |
|
|
280
|
-
| lineDownBoldLeftBoldRight | `┱` | |
|
|
281
|
-
| lineDownBoldLeftRightBold | `┲` | |
|
|
282
|
-
| lineDownLeftRightBold | `┮` | |
|
|
283
|
-
| lineDownLeftBoldRight | `┭` | |
|
|
284
|
-
| lineDownDoubleLeftDoubleRightDouble | `╦` | |
|
|
285
|
-
| lineDownDoubleLeftRight | `╥` | |
|
|
286
|
-
| lineDownLeftDoubleRightDouble | `╤` | |
|
|
287
|
-
| lineUpLeftRight | `┴` | |
|
|
288
|
-
| lineUpBoldLeftBoldRightBold | `┻` | |
|
|
289
|
-
| lineUpLeftBoldRightBold | `┷` | |
|
|
290
|
-
| lineUpBoldLeftRight | `┸` | |
|
|
291
|
-
| lineUpBoldLeftBoldRight | `┹` | |
|
|
292
|
-
| lineUpBoldLeftRightBold | `┺` | |
|
|
293
|
-
| lineUpLeftRightBold | `┶` | |
|
|
294
|
-
| lineUpLeftBoldRight | `┵` | |
|
|
295
|
-
| lineUpDoubleLeftDoubleRightDouble | `╩` | |
|
|
296
|
-
| lineUpDoubleLeftRight | `╨` | |
|
|
297
|
-
| lineUpLeftDoubleRightDouble | `╧` | |
|
|
298
|
-
| lineUpDownLeftRight | `┼` | |
|
|
299
|
-
| lineUpBoldDownBoldLeftBoldRightBold | `╋` | |
|
|
300
|
-
| lineUpDownBoldLeftBoldRightBold | `╈` | |
|
|
301
|
-
| lineUpBoldDownLeftBoldRightBold | `╇` | |
|
|
302
|
-
| lineUpBoldDownBoldLeftRightBold | `╊` | |
|
|
303
|
-
| lineUpBoldDownBoldLeftBoldRight | `╉` | |
|
|
304
|
-
| lineUpBoldDownLeftRight | `╀` | |
|
|
305
|
-
| lineUpDownBoldLeftRight | `╁` | |
|
|
306
|
-
| lineUpDownLeftBoldRight | `┽` | |
|
|
307
|
-
| lineUpDownLeftRightBold | `┾` | |
|
|
308
|
-
| lineUpBoldDownBoldLeftRight | `╂` | |
|
|
309
|
-
| lineUpDownLeftBoldRightBold | `┿` | |
|
|
310
|
-
| lineUpBoldDownLeftBoldRight | `╃` | |
|
|
311
|
-
| lineUpBoldDownLeftRightBold | `╄` | |
|
|
312
|
-
| lineUpDownBoldLeftBoldRight | `╅` | |
|
|
313
|
-
| lineUpDownBoldLeftRightBold | `╆` | |
|
|
314
|
-
| lineUpDoubleDownDoubleLeftDoubleRightDouble | `╬` | |
|
|
315
|
-
| lineUpDoubleDownDoubleLeftRight | `╫` | |
|
|
316
|
-
| lineUpDownLeftDoubleRightDouble | `╪` | |
|
|
317
|
-
| lineCross | `╳` | |
|
|
318
|
-
| lineBackslash | `╲` | |
|
|
319
|
-
| lineSlash | `╱` | |
|
|
320
|
-
|
|
321
|
-
## Other characters
|
|
322
|
-
|
|
323
|
-
If you cannot find the character you're looking for in the table above, please look at this full list of [cross-platform terminal characters](https://github.com/ehmicky/cross-platform-terminal-characters).
|
|
324
|
-
|
|
325
|
-
## Unsupported terminals
|
|
326
|
-
|
|
327
|
-
The following terminals are not officially supported:
|
|
328
|
-
|
|
329
|
-
- xterm
|
|
330
|
-
- Linux Terminal (kernel)
|
|
331
|
-
- cmder
|
|
332
|
-
|
|
333
|
-
They can display most but not all of the symbols listed above.
|
|
334
|
-
|
|
335
|
-
## Related
|
|
336
|
-
|
|
337
|
-
- [log-symbols](https://github.com/sindresorhus/log-symbols) - Colored symbols for various log levels
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import process from 'node:process';
|
|
2
|
-
import fs from 'node:fs';
|
|
3
|
-
import fsPromises from 'node:fs/promises';
|
|
4
|
-
import path from 'node:path';
|
|
5
|
-
import fastGlob from 'fast-glob';
|
|
6
|
-
import gitIgnore from 'ignore';
|
|
7
|
-
import slash from 'slash';
|
|
8
|
-
import {toPath} from 'unicorn-magic';
|
|
9
|
-
import {isNegativePattern} from './utilities.js';
|
|
10
|
-
|
|
11
|
-
const defaultIgnoredDirectories = [
|
|
12
|
-
'**/node_modules',
|
|
13
|
-
'**/flow-typed',
|
|
14
|
-
'**/coverage',
|
|
15
|
-
'**/.git',
|
|
16
|
-
];
|
|
17
|
-
const ignoreFilesGlobOptions = {
|
|
18
|
-
absolute: true,
|
|
19
|
-
dot: true,
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const GITIGNORE_FILES_PATTERN = '**/.gitignore';
|
|
23
|
-
|
|
24
|
-
const applyBaseToPattern = (pattern, base) => isNegativePattern(pattern)
|
|
25
|
-
? '!' + path.posix.join(base, pattern.slice(1))
|
|
26
|
-
: path.posix.join(base, pattern);
|
|
27
|
-
|
|
28
|
-
const parseIgnoreFile = (file, cwd) => {
|
|
29
|
-
const base = slash(path.relative(cwd, path.dirname(file.filePath)));
|
|
30
|
-
|
|
31
|
-
return file.content
|
|
32
|
-
.split(/\r?\n/)
|
|
33
|
-
.filter(line => line && !line.startsWith('#'))
|
|
34
|
-
.map(pattern => applyBaseToPattern(pattern, base));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const toRelativePath = (fileOrDirectory, cwd) => {
|
|
38
|
-
cwd = slash(cwd);
|
|
39
|
-
if (path.isAbsolute(fileOrDirectory)) {
|
|
40
|
-
if (slash(fileOrDirectory).startsWith(cwd)) {
|
|
41
|
-
return path.relative(cwd, fileOrDirectory);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
throw new Error(`Path ${fileOrDirectory} is not in cwd ${cwd}`);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return fileOrDirectory;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
const getIsIgnoredPredicate = (files, cwd) => {
|
|
51
|
-
const patterns = files.flatMap(file => parseIgnoreFile(file, cwd));
|
|
52
|
-
const ignores = gitIgnore().add(patterns);
|
|
53
|
-
|
|
54
|
-
return fileOrDirectory => {
|
|
55
|
-
fileOrDirectory = toPath(fileOrDirectory);
|
|
56
|
-
fileOrDirectory = toRelativePath(fileOrDirectory, cwd);
|
|
57
|
-
return fileOrDirectory ? ignores.ignores(slash(fileOrDirectory)) : false;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
const normalizeOptions = (options = {}) => ({
|
|
62
|
-
cwd: toPath(options.cwd) ?? process.cwd(),
|
|
63
|
-
suppressErrors: Boolean(options.suppressErrors),
|
|
64
|
-
deep: typeof options.deep === 'number' ? options.deep : Number.POSITIVE_INFINITY,
|
|
65
|
-
ignore: [...options.ignore ?? [], ...defaultIgnoredDirectories],
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
export const isIgnoredByIgnoreFiles = async (patterns, options) => {
|
|
69
|
-
const {cwd, suppressErrors, deep, ignore} = normalizeOptions(options);
|
|
70
|
-
|
|
71
|
-
const paths = await fastGlob(patterns, {
|
|
72
|
-
cwd,
|
|
73
|
-
suppressErrors,
|
|
74
|
-
deep,
|
|
75
|
-
ignore,
|
|
76
|
-
...ignoreFilesGlobOptions,
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
const files = await Promise.all(
|
|
80
|
-
paths.map(async filePath => ({
|
|
81
|
-
filePath,
|
|
82
|
-
content: await fsPromises.readFile(filePath, 'utf8'),
|
|
83
|
-
})),
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
return getIsIgnoredPredicate(files, cwd);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export const isIgnoredByIgnoreFilesSync = (patterns, options) => {
|
|
90
|
-
const {cwd, suppressErrors, deep, ignore} = normalizeOptions(options);
|
|
91
|
-
|
|
92
|
-
const paths = fastGlob.sync(patterns, {
|
|
93
|
-
cwd,
|
|
94
|
-
suppressErrors,
|
|
95
|
-
deep,
|
|
96
|
-
ignore,
|
|
97
|
-
...ignoreFilesGlobOptions,
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
const files = paths.map(filePath => ({
|
|
101
|
-
filePath,
|
|
102
|
-
content: fs.readFileSync(filePath, 'utf8'),
|
|
103
|
-
}));
|
|
104
|
-
|
|
105
|
-
return getIsIgnoredPredicate(files, cwd);
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export const isGitIgnored = options => isIgnoredByIgnoreFiles(GITIGNORE_FILES_PATTERN, options);
|
|
109
|
-
export const isGitIgnoredSync = options => isIgnoredByIgnoreFilesSync(GITIGNORE_FILES_PATTERN, options);
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
import type FastGlob from 'fast-glob';
|
|
2
|
-
|
|
3
|
-
export type GlobEntry = FastGlob.Entry;
|
|
4
|
-
|
|
5
|
-
export type GlobTask = {
|
|
6
|
-
readonly patterns: string[];
|
|
7
|
-
readonly options: Options;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export type ExpandDirectoriesOption =
|
|
11
|
-
| boolean
|
|
12
|
-
| readonly string[]
|
|
13
|
-
| {files?: readonly string[]; extensions?: readonly string[]};
|
|
14
|
-
|
|
15
|
-
type FastGlobOptionsWithoutCwd = Omit<FastGlob.Options, 'cwd'>;
|
|
16
|
-
|
|
17
|
-
export type Options = {
|
|
18
|
-
/**
|
|
19
|
-
If set to `true`, `globby` will automatically glob directories for you. If you define an `Array` it will only glob files that matches the patterns inside the `Array`. You can also define an `Object` with `files` and `extensions` like in the example below.
|
|
20
|
-
|
|
21
|
-
Note that if you set this option to `false`, you won't get back matched directories unless you set `onlyFiles: false`.
|
|
22
|
-
|
|
23
|
-
@default true
|
|
24
|
-
|
|
25
|
-
@example
|
|
26
|
-
```
|
|
27
|
-
import {globby} from 'globby';
|
|
28
|
-
|
|
29
|
-
const paths = await globby('images', {
|
|
30
|
-
expandDirectories: {
|
|
31
|
-
files: ['cat', 'unicorn', '*.jpg'],
|
|
32
|
-
extensions: ['png']
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
console.log(paths);
|
|
37
|
-
//=> ['cat.png', 'unicorn.png', 'cow.jpg', 'rainbow.jpg']
|
|
38
|
-
```
|
|
39
|
-
*/
|
|
40
|
-
readonly expandDirectories?: ExpandDirectoriesOption;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
Respect ignore patterns in `.gitignore` files that apply to the globbed files.
|
|
44
|
-
|
|
45
|
-
@default false
|
|
46
|
-
*/
|
|
47
|
-
readonly gitignore?: boolean;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
Glob patterns to look for ignore files, which are then used to ignore globbed files.
|
|
51
|
-
|
|
52
|
-
This is a more generic form of the `gitignore` option, allowing you to find ignore files with a [compatible syntax](http://git-scm.com/docs/gitignore). For instance, this works with Babel's `.babelignore`, Prettier's `.prettierignore`, or ESLint's `.eslintignore` files.
|
|
53
|
-
|
|
54
|
-
@default undefined
|
|
55
|
-
*/
|
|
56
|
-
readonly ignoreFiles?: string | readonly string[];
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
The current working directory in which to search.
|
|
60
|
-
|
|
61
|
-
@default process.cwd()
|
|
62
|
-
*/
|
|
63
|
-
readonly cwd?: URL | string;
|
|
64
|
-
} & FastGlobOptionsWithoutCwd;
|
|
65
|
-
|
|
66
|
-
export type GitignoreOptions = {
|
|
67
|
-
readonly cwd?: URL | string;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
export type GlobbyFilterFunction = (path: URL | string) => boolean;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
Find files and directories using glob patterns.
|
|
74
|
-
|
|
75
|
-
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
76
|
-
|
|
77
|
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
78
|
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
79
|
-
@returns The matching paths.
|
|
80
|
-
|
|
81
|
-
@example
|
|
82
|
-
```
|
|
83
|
-
import {globby} from 'globby';
|
|
84
|
-
|
|
85
|
-
const paths = await globby(['*', '!cake']);
|
|
86
|
-
|
|
87
|
-
console.log(paths);
|
|
88
|
-
//=> ['unicorn', 'rainbow']
|
|
89
|
-
```
|
|
90
|
-
*/
|
|
91
|
-
export function globby(
|
|
92
|
-
patterns: string | readonly string[],
|
|
93
|
-
options: Options & {objectMode: true}
|
|
94
|
-
): Promise<GlobEntry[]>;
|
|
95
|
-
export function globby(
|
|
96
|
-
patterns: string | readonly string[],
|
|
97
|
-
options?: Options
|
|
98
|
-
): Promise<string[]>;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
Find files and directories using glob patterns.
|
|
102
|
-
|
|
103
|
-
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
104
|
-
|
|
105
|
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
106
|
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
107
|
-
@returns The matching paths.
|
|
108
|
-
*/
|
|
109
|
-
export function globbySync(
|
|
110
|
-
patterns: string | readonly string[],
|
|
111
|
-
options: Options & {objectMode: true}
|
|
112
|
-
): GlobEntry[];
|
|
113
|
-
export function globbySync(
|
|
114
|
-
patterns: string | readonly string[],
|
|
115
|
-
options?: Options
|
|
116
|
-
): string[];
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
Find files and directories using glob patterns.
|
|
120
|
-
|
|
121
|
-
Note that glob patterns can only contain forward-slashes, not backward-slashes, so if you want to construct a glob pattern from path components, you need to use `path.posix.join()` instead of `path.join()`.
|
|
122
|
-
|
|
123
|
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
124
|
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
125
|
-
@returns The stream of matching paths.
|
|
126
|
-
|
|
127
|
-
@example
|
|
128
|
-
```
|
|
129
|
-
import {globbyStream} from 'globby';
|
|
130
|
-
|
|
131
|
-
for await (const path of globbyStream('*.tmp')) {
|
|
132
|
-
console.log(path);
|
|
133
|
-
}
|
|
134
|
-
```
|
|
135
|
-
*/
|
|
136
|
-
export function globbyStream(
|
|
137
|
-
patterns: string | readonly string[],
|
|
138
|
-
options?: Options
|
|
139
|
-
): NodeJS.ReadableStream;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
Note that you should avoid running the same tasks multiple times as they contain a file system cache. Instead, run this method each time to ensure file system changes are taken into consideration.
|
|
143
|
-
|
|
144
|
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
145
|
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3) in addition to the ones in this package.
|
|
146
|
-
@returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
|
|
147
|
-
*/
|
|
148
|
-
export function generateGlobTasks(
|
|
149
|
-
patterns: string | readonly string[],
|
|
150
|
-
options?: Options
|
|
151
|
-
): Promise<GlobTask[]>;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
@see generateGlobTasks
|
|
155
|
-
|
|
156
|
-
@returns An object in the format `{pattern: string, options: object}`, which can be passed as arguments to [`fast-glob`](https://github.com/mrmlnc/fast-glob). This is useful for other globbing-related packages.
|
|
157
|
-
*/
|
|
158
|
-
export function generateGlobTasksSync(
|
|
159
|
-
patterns: string | readonly string[],
|
|
160
|
-
options?: Options
|
|
161
|
-
): GlobTask[];
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
Note that the options affect the results.
|
|
165
|
-
|
|
166
|
-
This function is backed by [`fast-glob`](https://github.com/mrmlnc/fast-glob#isdynamicpatternpattern-options).
|
|
167
|
-
|
|
168
|
-
@param patterns - See the supported [glob patterns](https://github.com/sindresorhus/globby#globbing-patterns).
|
|
169
|
-
@param options - See the [`fast-glob` options](https://github.com/mrmlnc/fast-glob#options-3).
|
|
170
|
-
@returns Whether there are any special glob characters in the `patterns`.
|
|
171
|
-
*/
|
|
172
|
-
export function isDynamicPattern(
|
|
173
|
-
patterns: string | readonly string[],
|
|
174
|
-
options?: FastGlobOptionsWithoutCwd & {
|
|
175
|
-
/**
|
|
176
|
-
The current working directory in which to search.
|
|
177
|
-
|
|
178
|
-
@default process.cwd()
|
|
179
|
-
*/
|
|
180
|
-
readonly cwd?: URL | string;
|
|
181
|
-
}
|
|
182
|
-
): boolean;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
`.gitignore` files matched by the ignore config are not used for the resulting filter function.
|
|
186
|
-
|
|
187
|
-
@returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
|
|
188
|
-
|
|
189
|
-
@example
|
|
190
|
-
```
|
|
191
|
-
import {isGitIgnored} from 'globby';
|
|
192
|
-
|
|
193
|
-
const isIgnored = await isGitIgnored();
|
|
194
|
-
|
|
195
|
-
console.log(isIgnored('some/file'));
|
|
196
|
-
```
|
|
197
|
-
*/
|
|
198
|
-
export function isGitIgnored(options?: GitignoreOptions): Promise<GlobbyFilterFunction>;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
@see isGitIgnored
|
|
202
|
-
|
|
203
|
-
@returns A filter function indicating whether a given path is ignored via a `.gitignore` file.
|
|
204
|
-
*/
|
|
205
|
-
export function isGitIgnoredSync(options?: GitignoreOptions): GlobbyFilterFunction;
|
|
206
|
-
|
|
207
|
-
export function convertPathToPattern(source: string): FastGlob.Pattern;
|