{"id":23593922,"url":"https://github.com/hutsoninc/copy-to-range-cli","last_synced_at":"2025-06-30T10:03:54.887Z","repository":{"id":57207318,"uuid":"156613352","full_name":"hutsoninc/copy-to-range-cli","owner":"hutsoninc","description":"Copy a file to a range of directories.","archived":false,"fork":false,"pushed_at":"2018-11-26T21:41:48.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T00:47:17.656Z","etag":null,"topics":["copy","cp","dir","directory","file","files","integer","range"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hutsoninc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-07T21:55:51.000Z","updated_at":"2018-11-26T21:41:50.000Z","dependencies_parsed_at":"2022-09-08T14:22:39.871Z","dependency_job_id":null,"html_url":"https://github.com/hutsoninc/copy-to-range-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutsoninc%2Fcopy-to-range-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutsoninc%2Fcopy-to-range-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutsoninc%2Fcopy-to-range-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hutsoninc%2Fcopy-to-range-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hutsoninc","download_url":"https://codeload.github.com/hutsoninc/copy-to-range-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239434529,"owners_count":19637964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["copy","cp","dir","directory","file","files","integer","range"],"created_at":"2024-12-27T09:14:17.096Z","updated_at":"2025-02-18T08:23:30.725Z","avatar_url":"https://github.com/hutsoninc.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# copy-to-range-cli\n\n[![Current npm package version](https://img.shields.io/npm/v/copy-to-range-cli.svg)](https://www.npmjs.com/package/copy-to-range-cli) \n\nCopy a file to a range of directories.\n\n## Installation\n\n`npm install --global copy-to-range-cli`\n\n## Usage\n\n```\n$ copy-to-range --help\n\n  Copy files to a range of directories.\n\n  Usage\n    $ copy-to-range \u003cfile\u003e \u003cint\u003e-\u003cint\u003e\n  Options\n       --destination, -d  Destination for dirs\n       --prepend, -p  Prepend to destination dir names\n       --append, -a  Append to destination dir names\n  Example\n    $ copy-to-range file.txt 1-5,7,9-10\n```\n\n```\n$ tree\n.\n├── file.txt\n├── 1\n├── 2\n├── 3\n├── 5\n│ ...\n\n$ copy-to-range file.txt 1-3,5\n\n# tree\n.\n├── file.txt\n├── 1\n│   └── file.txt\n├── 2\n│   └── file.txt\n├── 3\n│   └── file.txt\n├── 5\n│   └── file.txt\n│ ...\n```\n\n## With options:\n\n```\n$ tree\n.\n├── file.txt\n├── out\n│   ├── p1a\n│   ├── p2a\n│   ├── p3a\n│   └── p5a\n│ ...\n\n$ copy-to-range file.txt 1-3,5 --destination out --prepend p --append a\n\n$ tree\n.\n├── file.txt\n├── out\n│   ├── p1a\n│   │   └── file.txt\n│   ├── p2a\n│   │   └── file.txt\n│   ├── p3a\n│   │   └── file.txt\n│   └── p5a\n│       └── file.txt\n│ ...\n```\n\n## Command Line/Shell Alias\n\n### Windows\n\nFollow the instructions on [this Stack Overflow answer](https://stackoverflow.com/a/21040825/8268314) to set up an alias on Windows.\n\n### UNIX\n\n```\nalias mdr=make-dir-range\n```\n\n## Related\n\n- [copy-to-range](https://github.com/hutsoninc/copy-to-range) - API for this module\n- [make-dir-range-cli](https://github.com/hutsoninc/make-dir-range-cli) - Make directories from a range of integers\n- [move-to-range-cli](https://github.com/hutsoninc/move-to-range-cli) - Move files to corresponding directories given a range\n\n## Authors\n\n* **Austin Gordon** - *Development* - [GitHub](https://github.com/AustinLeeGordon)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhutsoninc%2Fcopy-to-range-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhutsoninc%2Fcopy-to-range-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhutsoninc%2Fcopy-to-range-cli/lists"}