copy-file

Copy a file

MIT License

Downloads
134.1K
Stars
119
Committers
14

Bot releases are visible (Hide)

copy-file - Latest Release

Published by sindresorhus 12 months ago

Breaking

  • Rename package from cp-file to copy-file 129a921
  • Require Node.js 18 8b16c8e

Improvements

  • Clone the file whenever possible 58e1009

https://github.com/sindresorhus/cp-file/compare/v10.0.0...v11.0.0

copy-file -

Published by sindresorhus over 2 years ago

Breaking

  • Require Node.js 14 176d12f
  • This package is now pure ESM. Please read this.
  • Remove the .on('progress') event in favor of a onProgress option (#52) cf322af

Improvements

  • Add cwd option (#46) 3fe6ab4

https://github.com/sindresorhus/cp-file/compare/v9.1.0...v10.0.0

copy-file -

Published by sindresorhus over 3 years ago

copy-file -

Published by sindresorhus over 4 years ago

Breaking

  • Stop preserving file ownership (#39) 4e536d5
    This is most likely not a breaking change for anyone, but it still changes the behavior, so it's a major version just to be safe.

https://github.com/sindresorhus/cp-file/compare/v8.0.1...v9.0.0

copy-file -

Published by sindresorhus over 4 years ago

  • Fix problems when on latest Node.js 12 d7fab4c

https://github.com/sindresorhus/cp-file/compare/v8.0.0...v8.0.1

copy-file -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 df050ac
  • Always throw if unable to overwrite (#38) 4668c5a
  • Rename some ProgressData properties 1b5e072
    • progress.srcprogress.sourcePath
    • progress.destprogress.destinationPath
    • progress.writtenprogress.writtenBytes

https://github.com/sindresorhus/cp-file/compare/v7.0.0...v8.0.0

copy-file -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#33) 5e42b4a
  • For TypeScript users only:
    You need to change import cpFile from 'cp-file'; to import cpFile = require('cp-file');

Enhancements:

  • Detect read IO errors after open (#33) 5e42b4a

https://github.com/sindresorhus/cp-file/compare/v6.2.0...v7.0.0

copy-file -

Published by sindresorhus over 5 years ago

  • Refactor TypeScript definition to CommonJS compatible export (#32) dfe2fb5

https://github.com/sindresorhus/cp-file/compare/v6.1.0...v6.2.0

copy-file -

Published by sindresorhus over 5 years ago

  • Add TypeScript definition (#29) e72965e
  • Update dependencies (#29) e72965e

https://github.com/sindresorhus/cp-file/compare/v6.0.0...v6.1.0

copy-file -

Published by sindresorhus over 6 years ago

Breaking: Requires Node.js 6
Improvement: Node.js 10 compatibility