move-file-cli
Advanced tools
Comparing version 2.0.0 to 3.0.0
16
cli.js
#!/usr/bin/env node | ||
'use strict'; | ||
const meow = require('meow'); | ||
const moveFile = require('move-file'); | ||
import meow from 'meow'; | ||
import {moveFileSync} from 'move-file'; | ||
@@ -16,8 +15,9 @@ const cli = meow(` | ||
`, { | ||
importMeta: import.meta, | ||
flags: { | ||
overwrite: { | ||
type: 'boolean', | ||
default: true | ||
} | ||
} | ||
default: true, | ||
}, | ||
}, | ||
}); | ||
@@ -27,4 +27,2 @@ | ||
(async () => { | ||
await moveFile(source, destination, cli.flags); | ||
})(); | ||
moveFileSync(source, destination, cli.flags); |
{ | ||
"name": "move-file-cli", | ||
"version": "2.0.0", | ||
"version": "3.0.0", | ||
"description": "Move a file on the command-line", | ||
@@ -13,7 +13,8 @@ "license": "MIT", | ||
}, | ||
"type": "module", | ||
"bin": { | ||
"move-file": "cli.js" | ||
"move-file": "./cli.js" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
@@ -45,11 +46,11 @@ "scripts": { | ||
"dependencies": { | ||
"meow": "^7.0.1", | ||
"move-file": "^2.0.0" | ||
"meow": "^10.1.1", | ||
"move-file": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^2.4.0", | ||
"execa": "^4.0.2", | ||
"tempy": "^0.5.0", | ||
"xo": "^0.32.0" | ||
"ava": "^3.15.0", | ||
"execa": "^5.1.1", | ||
"tempy": "^1.0.1", | ||
"xo": "^0.44.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# move-file-cli [![Build Status](https://travis-ci.com/sindresorhus/move-file-cli.svg?branch=master)](https://travis-ci.com/github/sindresorhus/move-file-cli) | ||
# move-file-cli | ||
@@ -3,0 +3,0 @@ > Move a file on the command-line |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Yes
3128
21
+ Addedcamelcase@6.3.0(transitive)
+ Addedcamelcase-keys@7.0.2(transitive)
+ Addeddecamelize@5.0.1(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedhosted-git-info@4.1.0(transitive)
+ Addedindent-string@5.0.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedlru-cache@6.0.0(transitive)
+ Addedmeow@10.1.5(transitive)
+ Addedmove-file@3.1.0(transitive)
+ Addednormalize-package-data@3.0.3(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@5.0.0(transitive)
+ Addedquick-lru@5.1.1(transitive)
+ Addedread-pkg@6.0.0(transitive)
+ Addedread-pkg-up@8.0.0(transitive)
+ Addedredent@4.0.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedstrip-indent@4.0.0(transitive)
+ Addedtrim-newlines@4.1.1(transitive)
+ Addedtype-fest@1.4.0(transitive)
+ Addedyallist@4.0.0(transitive)
+ Addedyargs-parser@20.2.9(transitive)
+ Addedyocto-queue@0.1.0(transitive)
- Removedcamelcase@5.3.1(transitive)
- Removedcamelcase-keys@6.2.2(transitive)
- Removedfind-up@4.1.0(transitive)
- Removedhosted-git-info@2.8.9(transitive)
- Removedindent-string@4.0.0(transitive)
- Removedlocate-path@5.0.0(transitive)
- Removedmeow@7.1.1(transitive)
- Removedmove-file@2.1.0(transitive)
- Removednormalize-package-data@2.5.0(transitive)
- Removedp-limit@2.3.0(transitive)
- Removedp-locate@4.1.0(transitive)
- Removedp-try@2.2.0(transitive)
- Removedpath-parse@1.0.7(transitive)
- Removedquick-lru@4.0.1(transitive)
- Removedread-pkg@5.2.0(transitive)
- Removedread-pkg-up@7.0.1(transitive)
- Removedredent@3.0.0(transitive)
- Removedresolve@1.22.8(transitive)
- Removedsemver@5.7.2(transitive)
- Removedstrip-indent@3.0.0(transitive)
- Removedsupports-preserve-symlinks-flag@1.0.0(transitive)
- Removedtrim-newlines@3.0.1(transitive)
- Removedtype-fest@0.13.10.6.00.8.1(transitive)
- Removedyargs-parser@18.1.3(transitive)
Updatedmeow@^10.1.1
Updatedmove-file@^3.0.0