{"id":19251367,"url":"https://github.com/springtype-org/st-cp","last_synced_at":"2026-05-14T22:04:35.253Z","repository":{"id":98552680,"uuid":"214889353","full_name":"springtype-org/st-cp","owner":"springtype-org","description":"The missing cp -rp for Node.js, Windows, Linux, Mac OS using native executables","archived":false,"fork":false,"pushed_at":"2020-05-26T20:24:02.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-23T16:49:25.684Z","etag":null,"topics":["cli","copy","cross-platform","directory","file","native","node-module","nodejs","permissions","recursive"],"latest_commit_sha":null,"homepage":"https://www.springtype.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/springtype-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-13T20:30:03.000Z","updated_at":"2023-02-16T02:16:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"bfde7b30-ba0f-4ff5-8844-bc3e370f8c70","html_url":"https://github.com/springtype-org/st-cp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/springtype-org/st-cp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springtype-org%2Fst-cp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springtype-org%2Fst-cp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springtype-org%2Fst-cp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springtype-org%2Fst-cp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/springtype-org","download_url":"https://codeload.github.com/springtype-org/st-cp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/springtype-org%2Fst-cp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33045149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","copy","cross-platform","directory","file","native","node-module","nodejs","permissions","recursive"],"created_at":"2024-11-09T18:22:10.669Z","updated_at":"2026-05-14T22:04:35.235Z","avatar_url":"https://github.com/springtype-org.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## st-cp\n\n[![Gitter](https://badges.gitter.im/springtype-official/springtype.svg)](https://gitter.im/springtype-official/springtype?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge)\n\n![Node CI](https://github.com/springtype-org/st-cp/workflows/Node%20CI/badge.svg?branch=master)\n\n\u003e Cross-platform `cp`\n  copy easy files and folders:\n  **create missing folders _automatically_**\n\u003e\nuse it programmatically:\ninstall via `npm i st-cp` or `yarn add st-cp`. \n````$typescript\nimport {copyPathOrFile} from 'st-cp';\n\ncopyPathOrFile('sourcePath',{path: 'destinationPath', isDirectory: true});\n\n````\n\nuse the cli npx `st-cp source destination`\n\n## Parameter\n### source \n - required\n - multiple (files and folders)\n### destination\n - required\n - enforce folder with / @ the end\n \n \n\n## Examples:\n#### copy files to a folder\n  ```\n   # before\n   ├── --- file1\n   ├── --- file2\n   ├── --- file3\n  ```\n`st-cp file1 file2 file3 folder`  \n  ```\n   # after\n   ├── --- file1\n   ├── --- file2\n   ├── --- file3\n   ├── --- folder/file1\n   ├── --- folder/file2\n   ├── --- folder/file3\n  ```  \n#### copy file to a folder\n  ```\n   # before\n   ├── --- file\n  ```\n`st-cp file folder/`  \n  ```\n   # after\n   ├── --- file\n   ├── --- folder/file\n  ```  \n#### copy file to a file (create a folder)\n  ```\n   # before\n   ├── --- file\n  ```\n`st-cp file folder/new-file`  \n  ```\n   # after\n   ├── --- file\n   ├── --- folder/new-file\n  ```  \n#### copy folder to folder\n  ```\n   # before\n   ├── --- folder\n  ```\n`st-cp folder folder1`  \n  ```\n   # after\n   ├── --- folder\n   ├── --- folder1\n  ```  \n#### copy files and folders to destination\n  ```\n   # before\n   ├── --- file1\n   ├── --- file2\n   ├── --- folder1\n   ├── --- folder2\n  ```\n`st-cp file folder dist`  \n  ```\n   # after\n   ├── --- file1\n   ├── --- file2\n   ├── --- folder1\n   ├── --- folder2\n   ├── --- dist/file1\n   ├── --- dist/file2\n   ├── --- dist/folder1\n   ├── --- dist/folder2\n  ```  \n\n\n### Exceptional:\ncopy file to existing folder\n  ```\n   # before\n   ├── --- file\n   ├── --- folder\n  ```\n`st-cp file folder`  \n  ```\n   # after\n   ├── --- file\n   ├── --- folder\n   ├── --- folder/file\n  ```  \n\n# Semantic Commit Messages\n\nSee how a minor change to your commit message style can make you a better programmer.\n\nFormat: `\u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e`\n\n`\u003cscope\u003e` is optional\n\n## Example\n\n```\nfeat: add hat wobble\n^--^  ^------------^\n|     |\n|     +-\u003e Summary in present tense.\n|\n+-------\u003e Type: chore, docs, feat, fix, refactor, style, or test.\n```\n\nMore Examples:\n\n- `feat`: (new feature for the user, not a new feature for build script)\n- `fix`: (bug fix for the user, not a fix to a build script)\n- `docs`: (changes to the documentation)\n- `style`: (formatting, missing semi colons, etc; no production code change)\n- `refactor`: (refactoring production code, eg. renaming a variable)\n- `test`: (adding missing tests, refactoring tests; no production code change)\n- `chore`: (updating grunt tasks etc; no production code change)\n\nReferences:\n\n- https://www.conventionalcommits.org/\n- https://seesparkbox.com/foundry/semantic_commit_messages\n- http://karma-runner.github.io/1.0/dev/git-commit-msg.html\n\u003ch2 align=\"center\"\u003eBackers\u003c/h2\u003e\n\nThank you so much for supporting us financially! 🙏🏻😎🥳👍\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003cimg width=\"150\" height=\"150\"\n        src=\"https://avatars2.githubusercontent.com/u/17221813?v=4\u0026s=150\"\u003e\n        \u003c/br\u003e\n        \u003ca href=\"https://github.com/jsdevtom\"\u003eTom\u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n\n\u003ch2 align=\"center\"\u003eMaintainers\u003c/h2\u003e\n\nSpringType is brought to you by:\n\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003cimg width=\"150\" height=\"150\"\n        src=\"https://avatars3.githubusercontent.com/u/454817?v=4\u0026s=150\"\u003e\n        \u003c/br\u003e\n        \u003ca href=\"https://github.com/kyr0\"\u003eAron Homberg\u003c/a\u003e\n      \u003c/td\u003e\n      \u003ctd align=\"center\"\u003e\n        \u003cimg width=\"150\" height=\"150\"\n        src=\"https://avatars2.githubusercontent.com/u/12079044?s=150\u0026v=4\"\u003e\n        \u003c/br\u003e\n        \u003ca href=\"https://github.com/mansi1\"\u003eMichael Mannseicher\u003c/a\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003ctbody\u003e\n\u003c/table\u003e\n\n\u003ch2 align=\"center\"\u003eContributing\u003c/h2\u003e\n\nPlease help out to make this project even better and see your name added to the list of our\n[CONTRIBUTORS.md](./CONTRIBUTORS.md) :tada:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringtype-org%2Fst-cp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspringtype-org%2Fst-cp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspringtype-org%2Fst-cp/lists"}