2.0.0-beta.2 • Published 4 years ago
st-cp v2.0.0-beta.2
st-cp
Cross-platform
cp
copy easy files and folders: create missing folders automaticallyuse it programmatically: install via
npm i st-cp
oryarn add st-cp
.import {copyPathOrFile} from 'st-cp';
copyPathOrFile('sourcePath',{path: 'destinationPath', isDirectory: true});
use the cli npx `st-cp source destination`
## Parameter
### source
- required
- multiple (files and folders)
### destination
- required
- enforce folder with / @ the end
## Examples:
#### copy files to a folder
```
# before
├── --- file1
├── --- file2
├── --- file3
```
`st-cp file1 file2 file3 folder`
```
# after
├── --- file1
├── --- file2
├── --- file3
├── --- folder/file1
├── --- folder/file2
├── --- folder/file3
```
#### copy file to a folder
```
# before
├── --- file
```
`st-cp file folder/`
```
# after
├── --- file
├── --- folder/file
```
#### copy file to a file (create a folder)
```
# before
├── --- file
```
`st-cp file folder/new-file`
```
# after
├── --- file
├── --- folder/new-file
```
#### copy folder to folder
```
# before
├── --- folder
```
`st-cp folder folder1`
```
# after
├── --- folder
├── --- folder1
```
#### copy files and folders to destination
```
# before
├── --- file1
├── --- file2
├── --- folder1
├── --- folder2
```
`st-cp file folder dist`
```
# after
├── --- file1
├── --- file2
├── --- folder1
├── --- folder2
├── --- dist/file1
├── --- dist/file2
├── --- dist/folder1
├── --- dist/folder2
```
### Exceptional:
copy file to existing folder
```
# before
├── --- file
├── --- folder
```
`st-cp file folder`
```
# after
├── --- file
├── --- folder
├── --- folder/file
```
# Semantic Commit Messages
See how a minor change to your commit message style can make you a better programmer.
Format: `<type>(<scope>): <subject>`
`<scope>` is optional
## Example
```
feat: add hat wobble
^--^ ^------------^
| |
| +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.
```
More Examples:
- `feat`: (new feature for the user, not a new feature for build script)
- `fix`: (bug fix for the user, not a fix to a build script)
- `docs`: (changes to the documentation)
- `style`: (formatting, missing semi colons, etc; no production code change)
- `refactor`: (refactoring production code, eg. renaming a variable)
- `test`: (adding missing tests, refactoring tests; no production code change)
- `chore`: (updating grunt tasks etc; no production code change)
References:
- https://www.conventionalcommits.org/
- https://seesparkbox.com/foundry/semantic_commit_messages
- http://karma-runner.github.io/1.0/dev/git-commit-msg.html
<h2 align="center">Backers</h2>
Thank you so much for supporting us financially! 🙏🏻😎🥳👍
<table>
<tbody>
<tr>
<td align="center">
<img width="150" height="150"
src="https://avatars2.githubusercontent.com/u/17221813?v=4&s=150">
</br>
<a href="https://github.com/jsdevtom">Tom</a>
</td>
</tr>
<tbody>
</table>
<h2 align="center">Maintainers</h2>
SpringType is brought to you by:
<table>
<tbody>
<tr>
<td align="center">
<img width="150" height="150"
src="https://avatars3.githubusercontent.com/u/454817?v=4&s=150">
</br>
<a href="https://github.com/kyr0">Aron Homberg</a>
</td>
<td align="center">
<img width="150" height="150"
src="https://avatars2.githubusercontent.com/u/12079044?s=150&v=4">
</br>
<a href="https://github.com/mansi1">Michael Mannseicher</a>
</td>
</tr>
<tbody>
</table>
<h2 align="center">Contributing</h2>
Please help out to make this project even better and see your name added to the list of our
[CONTRIBUTORS.md](./CONTRIBUTORS.md) :tada:
2.0.0-beta.2
4 years ago
2.0.0-beta.1
4 years ago
2.0.0-alpha.5
4 years ago
2.0.0-alpha.4
5 years ago
2.0.0-alpha.3
5 years ago
2.0.0-alpha.2
5 years ago
2.0.0-alpha.1
5 years ago
1.0.0-beta
5 years ago
1.0.0-alpha.1.59
5 years ago
1.0.0-alpha.1.58
5 years ago
1.0.0-alpha.1.57
5 years ago
1.0.0-alpha.1.56
5 years ago
1.0.0-alpha.1.55
5 years ago
1.0.0-alpha.1.54
5 years ago
1.0.0-alpha.1.53
5 years ago
1.0.0-alpha.1.52
5 years ago
1.0.0-alpha.1.51
5 years ago
1.0.0-alpha.1.50
5 years ago
1.0.0-alpha.1.49
5 years ago
1.0.0-alpha.1.48
5 years ago
1.0.0-alpha.1.47
5 years ago
1.0.0-alpha.1.46
5 years ago
1.0.0-alpha.1.45
5 years ago
1.0.0-alpha.1.44
5 years ago
1.0.0-alpha.1.43
5 years ago
1.0.0-alpha.1.42
5 years ago
1.0.0-alpha.1.41
5 years ago
1.0.0-alpha.1.40
5 years ago
1.0.0-alpha.1.39
5 years ago
1.0.0-alpha.1.38
5 years ago
1.0.0-alpha.1.37
5 years ago
1.0.0-alpha.1.36
5 years ago