{"id":18032385,"url":"https://github.com/dmitriz/gently-copy","last_synced_at":"2025-03-27T05:31:11.181Z","repository":{"id":3591207,"uuid":"50242863","full_name":"dmitriz/gently-copy","owner":"dmitriz","description":"Colorfully and informatively copy files without overwriting","archived":false,"fork":false,"pushed_at":"2025-03-17T03:40:07.000Z","size":1868,"stargazers_count":5,"open_issues_count":23,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T04:51:13.741Z","etag":null,"topics":[],"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/dmitriz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-23T14:54:55.000Z","updated_at":"2024-10-06T16:43:13.000Z","dependencies_parsed_at":"2023-02-13T21:01:50.485Z","dependency_job_id":"235259c3-febe-4a0b-9041-41458e454a32","html_url":"https://github.com/dmitriz/gently-copy","commit_stats":{"total_commits":168,"total_committers":7,"mean_commits":24.0,"dds":0.4464285714285714,"last_synced_commit":"75bddf1ccf85f0850d686a302af94b58d87fcba5"},"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgently-copy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgently-copy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgently-copy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fgently-copy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitriz","download_url":"https://codeload.github.com/dmitriz/gently-copy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245791393,"owners_count":20672665,"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":[],"created_at":"2024-10-30T10:13:14.415Z","updated_at":"2025-03-27T05:31:10.320Z","avatar_url":"https://github.com/dmitriz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gently-copy \nSafely, colorfully and informatively copy files without overwriting\n\n[![npm version](https://img.shields.io/npm/v/gently-copy.svg)](http://npm.im/gently-copy)\n[![Build Status](https://travis-ci.org/dmitriz/gently-copy.svg?branch=master)](https://travis-ci.org/dmitriz/gently-copy) \n[![Dependency Status](https://david-dm.org/dmitriz/gently-copy.svg)](https://david-dm.org/dmitriz/gently-copy) \n\n[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) \n[![MIT License](https://img.shields.io/npm/l/gently-copy.svg?style=flat-square)](http://opensource.org/licenses/MIT) \n[![npm downloads](https://img.shields.io/npm/dm/gently-copy.svg?style=flat-square)](https://www.npmjs.com/package/gently-copy)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n\n## Why?\n- Copying files is sensitive operation with possible side-effects.\n- Standard utilities do not sufficiently inform the user about what is going on.\n\n\n## Features\n- Safely copy files and directories without overwriting.\n- Skip overwriting existing files, inform instead (or configure to overwrite instead with `option = {overwrite: true}`.\n- Create new directories if needed.\n- Clearly and colorfully inform about all actions peformed.\n\n\n## Install\n\n```sh\n$ npm install --save gently-copy\n```\n\n\n## Usage\n\n```js\nvar gentlyCopy = require('gently-copy')\n\nvar fileList = ['some-file', 'some-dir']\nvar dest = 'some-dest'\n\ngentlyCopy(fileList, dest) // no overwriting (default)\ngentlyCopy(fileList, dest, {overwrite: true}) // force overwriting\n```\n\nConsole output with colors, thanks to the wonderful [`chalk`](https://github.com/chalk/chalk):\n```sh\n= Begin copying files\n - Copying file or directory: some-file\n - Copying file or directory: some-dir\n= End copying files\n\n```\n\n\n## API\n\n\n### gentlyCopy (source, destination, options)\n\n\n#### source \n\nType: `string` or (`array` of `strings`)\n\nSingle or list of file and directory name(s).\n\n\n#### destination\n\nType: `string`\n\nDestination directory name.\n\n\n#### options (optional)\n\nType: `object`\n\nTo overwrite existing files, pass `option = {overwrite: true}`\n\n\n## License\n\nMIT © [Dmitri Zaitsev](https://github.com/dmitriz)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fgently-copy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitriz%2Fgently-copy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fgently-copy/lists"}