You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@
8
8
9
9
## native-copyfiles
10
10
11
-
Copy files easily via JavaScript or the CLI, it uses [tinyglobby](https://www.npmjs.com/package/tinyglobby) internally for glob patterns and [yargs](https://www.npmjs.com/package/yargs) for the CLI.
11
+
Copy files easily via JavaScript or the CLI, it uses [tinyglobby](https://www.npmjs.com/package/tinyglobby) internally for glob patterns and [cli-nano](https://www.npmjs.com/package/cli-nano) for the CLI.
12
12
13
-
The library is very similar from the outside to the [copyfiles](https://www.npmjs.com/package/copyfiles) package, however its internal is quite different, it uses more native NodeJS code and less dependencies (3 instead of 7). The package options are the same (except for `--soft` which is not implemented), some new options were also added in this project here (see below).
13
+
The library is very similar to the [copyfiles](https://www.npmjs.com/package/copyfiles) package, at least from the outside, however its internal is quite different, it uses more native NodeJS code and a lot less dependencies (3 instead of 7). The options are nearly the same (except for `--soft` which is not implemented), new options were also added in this project here (mainly the rename feature, see below).
14
14
15
-
> Note: there is 1 noticeable difference with `copyfiles`, any options must be provided as a suffix after the source/target directories command (the original project had them as prefix).<br>
15
+
> Note: there is 1 noticeable difference with `copyfiles`, any options must be provided as a suffix after the source/target directories command (the original `copyfiles`project has them as prefix).<br>
16
16
> This mean calling: `copyfiles source target [options]` instead of `copyfiles [options] source target`
-u, --up slice a path off the bottom of the paths [number]
@@ -41,7 +45,7 @@ npm install native-copyfiles -D
41
45
```
42
46
43
47
> [!NOTE]
44
-
> Options **must** be provided after the command directories as suffix (the original project had them as prefix)
48
+
> Options **must** be provided after the command directories as suffix (the original project has them as prefix)
45
49
46
50
copy some files, give it a bunch of arguments, (which can include globs), the last one
47
51
is the out directory (which it will create if necessary). Note: on Windows globs must be **double quoted**, everybody else can quote however they please.
0 commit comments