![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Move or copy files and directories. (async, recursive, across devices, copy & delete fallback, minimalistic with 0 dependencies)
I did this: npm i mv
,
then I saw this: + mv@2.1.1 added 15 packages
,
then I said no.
It first tries fs.rename()
, then falls back on fs.copyFile()
and fs.unlink()
.
const mvdir = require('mvdir');
await mvdir('source/file.js', 'dest/file.js'); // move file.
await mvdir('source/file.js', 'dest/'); // move file. (same as above if dest directory already exists)
await mvdir('source', 'dest'); // move directory.
await mvdir('source', 'a/b/c/dest'); // creating necessary dirs.
await mvdir('C:\\file.js', 'D:\\file.js'); // move across drives/partitions.
// returns undefined if successful, or an error object:
const err = await mvdir('source/file.js', 'dest/file.js');
if (!err) console.log('done.');
mvdir('source/file.js', 'dest/file.js').then(err => {
if (!err) console.log('done.');
});
await mvdir('file1.js', 'file2.js', { copy: true });
await mvdir('dir1', 'dir2', { copy: true });
await mvdir('file1.js', 'file2.js', { overwrite: false }); // error if file2.js already exists.
await mvdir('dir1', 'dir2', { overwrite: false }); // error if dir2 already exists.
await mvdir('dir1', 'dir2', { log: false });
FAQs
Move or copy files and directories. (async, recursive, across devices, copy & delete fallback, minimalistic with 0 dependencies)
The npm package mvdir receives a total of 593 weekly downloads. As such, mvdir popularity was classified as not popular.
We found that mvdir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.