{"library":"cp","type":"library","category":null,"description":"The `cp` package is a lightweight Node.js utility designed for straightforward file copying, offering both asynchronous callback-based and synchronous APIs. Its current stable version is 0.2.0, with the last notable activity and publication on npm dating back to November 2014. Due to its age and lack of maintenance over many years, this package is considered abandoned. It was initially differentiated by its simplicity and direct approach to file operations, contrasting with more feature-rich but potentially complex alternatives or the direct use of Node.js's native `fs` module. The asynchronous API primarily uses callbacks, although the README mentions `yield cp(src, dest)`, indicating a pattern likely intended for use with generator-based flow control libraries (like `co`) that were common before native `async/await` became widespread. The package does not natively support modern promise-based or `async/await` patterns, which are now standard in Node.js.","language":"javascript","status":"abandoned","version":"0.2.0","tags":["javascript","fs","copy","cp"],"last_verified":"Wed May 27","install":[{"cmd":"npm install cp","imports":["const cp = require('cp');","const cp = require('cp');\ncp.sync(source, destination);","const cp = require('cp');\ncp(source, destination, (err) => { /* handle error */ });"]},{"cmd":"yarn add cp","imports":[]},{"cmd":"pnpm add cp","imports":[]}],"homepage":null,"github":"https://github.com/stephenmathieson/node-cp","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/cp","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/cp/compatibility"}}