{"id":15497365,"url":"https://github.com/heapwolf/cp-mux","last_synced_at":"2025-04-22T21:43:26.701Z","repository":{"id":28308755,"uuid":"31821483","full_name":"heapwolf/cp-mux","owner":"heapwolf","description":"copy files over a multiplexed stream","archived":false,"fork":false,"pushed_at":"2015-03-17T13:01:33.000Z","size":242,"stargazers_count":6,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T09:54:14.218Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heapwolf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-07T17:55:50.000Z","updated_at":"2017-09-25T14:22:49.000Z","dependencies_parsed_at":"2022-07-16T17:46:55.212Z","dependency_job_id":null,"html_url":"https://github.com/heapwolf/cp-mux","commit_stats":null,"previous_names":["hij1nx/cp-mux"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcp-mux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcp-mux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcp-mux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heapwolf%2Fcp-mux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heapwolf","download_url":"https://codeload.github.com/heapwolf/cp-mux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250330319,"owners_count":21412963,"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-02T08:33:12.716Z","updated_at":"2025-04-22T21:43:26.679Z","avatar_url":"https://github.com/heapwolf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYOPSIS\na proof of concept to copy files over a multiplexed stream. not feature complete.\n\n# EXAMPLE\nAn example using the `net` module.\n\n```js\nvar net = require('net')\nvar cp = require('cp-mux')\n\nfunction onServerReady() {\n\n  var socket = net.connect(3000)\n  var client = cp.createClient('./test/sink')\n\n  socket.pipe(client)\n\n  client.on('end', function() {\n    process.exit(0)\n  })\n}\n\nnet\n  .createServer(cp.createServer('./test/source'))\n  .listen(3000, onServerReady)\n```\n\n# OPTIONS\n\n### concurrency\n\nDetermines how many files that should be transferred concurrently. Default is `10`.\n\n### force\nSpecifies removal of the target file if it cannot be opened for write operations. The removal precedes any copying performed by the cp command.\n\n### dereference\nMakes the cp command follow symbolic links (symlinks) so that the destination has the target file rather than a symlink to the target.\n\n### interactive\nA callback that provides the name of a file to be overwritten as the first parameter. This occurs if the `TargetDirectory` or `TargetFile` parameter contains a file with the same name as a file specified in the `SourceFile` or `SourceDirectory` parameter. If you call back with `true`, `false` prevents overwriting the file.\n\n### preserve\nThe perserve flag preserves the following characteristics of each source path in the corresponding target: The time of the last data modification and the time of the last access, the ownership (only if it has permissions to do this), and the file permission bits.\n\n### recursive\nCopy directories recursively.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcp-mux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheapwolf%2Fcp-mux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheapwolf%2Fcp-mux/lists"}