CrossCross-Platform POSIX core-utils in JavaScript
- cp-es - A cross-platform clone of the
cpcommand in Linux - rm-es - A cross-platform clone of the
rmcommand in Linux
A cross-platform clone of the cp command in Linux
cp-es [...options] [source...] [destination]
[source...]- Source file(s)/glob(s)[destination]- The destination file/directory-r, --recursive- Copy file(s)/directorie(s) recursively
# copy one file
cp-es file1.txt dest/file1.txt
# copy multiple files
cp-es file1.txt file2.txt file3.txt dest/
# copy files that match a glob
cp-es *.txt dest/
# copy files that match multiple globs
cp-es *.txt *.js *.ts dest/
# recursively copy files from one directory to another
cp-es -r src/ dest/A cross-platform clone of the rm command in Linux
rm-es [...options] [paths...]
[paths...]- the source file(s)/glob(s)-r, --recursive- remove directory recursively
# remove one file
rm-es file1.txt
# remove multiple files
rm-es file1.txt file3.txt file3.txt
# remove files that match a glob
rm-es *.txt
# remove files that match miltiple globs
rm-es *.txt *.js *.ts
# recursively remove a
rm-es -r src/