GitShow/sindresorhus/move-file
sindresorhus

move-file

Move a file, directory, or symlink - Even works across devices

by sindresorhus
Star on GitHubForknpm

JavaScript

208 stars9 forks5 contributorsQuiet · 5mo agoSince 2017v4.1.0MIT

Meet the team

See all 5 on GitHub →
sindresorhus
sindresorhus25 contributions
BendingBender
BendingBender2 contributions
Richienb
Richienb2 contributions
tommy-mitchell
tommy-mitchell1 contribution

Languages

View on GitHub →
JavaScript86.2%
TypeScript13.8%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
tommy-mitchell
Add a convenience method for renaming a file in a directoryClosedIssue

Given a path to a directory, it's a little cumbersome to rename a single file: This only gets noisier if using , and the actual change can get lost or accidentally replaced. Consider (with a option like or ):

tommy-mitchell · 3y ago
tommy-mitchell
Add `renameFile` and `renameFileSync`, `cwd` option MergedPR

Resolves #22. Adds a option (like or ) and adds wrappers around and that makes it nicer to rename a file: I haven't added the new functions to the readme because I'm not sure how they should be formatted with the options being common to all of them. I could also update the deps, if you'd like.

tommy-mitchell · 3y ago
geetee24
fails to transpile under ESClosedIssue

Error [ERR_REQUIRE_ESM]: require() of ES Module C:\GtSource\NodeJs\awsClipboard\node_modules\move-file\index.js from xxx.ts not supported. Instead change the require of index.js in xxx.ts to a dynamic import() which is available in all CommonJS modules. at Module.m._compile (C:\GtSource\NodeJs\awsClipboard\node_modules\ts-node\dist\index.js:791:29) latest version wont execute.

geetee24 · 3y ago
Structured data for AI agents

Repository: sindresorhus/move-file. Description: Move a file, directory, or symlink - Even works across devices Stars: 208, Forks: 9. Primary language: JavaScript. Languages: JavaScript (86.2%), TypeScript (13.8%). License: MIT. Latest release: v4.1.0 (5mo ago). Open PRs: 0, open issues: 0. Last activity: 5mo ago. Community health: 85%. Top contributors: sindresorhus, BendingBender, Richienb, tommy-mitchell.

·@ofershap

Replace github.com with gitshow.dev