@lxf2513/node-mv
Advanced tools
+87
-1
@@ -14,4 +14,90 @@ #!/usr/bin/env node | ||
| const version = "1.0.3"; | ||
| const name = "@lxf2513/node-mv"; | ||
| const version$1 = "1.0.4"; | ||
| const description = "The 'mv' command implementation for nodejs.It will create all the necessary directories and destination file which not exist."; | ||
| const type = "module"; | ||
| const bin = { | ||
| nodemv: "./dist/bin.mjs" | ||
| }; | ||
| const main$1 = "./dist/index.cjs"; | ||
| const module$1 = "./dist/index.mjs"; | ||
| const types = "./dist/index.d.cts"; | ||
| const exports$1 = { | ||
| ".": { | ||
| "import": { | ||
| types: "./dist/index.d.mts", | ||
| "default": "./dist/index.mjs" | ||
| }, | ||
| require: { | ||
| types: "./dist/index.d.cts", | ||
| "default": "./dist/index.cjs" | ||
| } | ||
| } | ||
| }; | ||
| const files = [ | ||
| "dist" | ||
| ]; | ||
| const scripts = { | ||
| "type-check": "tsc --strict --noEmit", | ||
| format: "prettier --write src/", | ||
| build: "unbuild", | ||
| release: "npm publish" | ||
| }; | ||
| const repository = { | ||
| type: "git", | ||
| url: "git+git@github.com:luoxiangfan/node-mv.git" | ||
| }; | ||
| const keywords = [ | ||
| "mv", | ||
| "move", | ||
| "node mv", | ||
| "rename", | ||
| "file", | ||
| "folder", | ||
| "recursive" | ||
| ]; | ||
| const author = "lxf <infiniment@163.com>"; | ||
| const license = "MIT"; | ||
| const bugs = { | ||
| url: "https://github.com/luoxiangfan/node-mv/issues" | ||
| }; | ||
| const homepage = "https://github.com/luoxiangfan/node-mv#readme"; | ||
| const devDependencies = { | ||
| "@types/node": "^22.10.0", | ||
| prettier: "^3.4.1", | ||
| typescript: "^5.7.2", | ||
| unbuild: "^2.0.0" | ||
| }; | ||
| const dependencies = { | ||
| makedirp: "^1.1.1", | ||
| "node-cpr": "^1.2.2", | ||
| "node-rmrf": "^1.0.4" | ||
| }; | ||
| const publishConfig = { | ||
| access: "public" | ||
| }; | ||
| const packageConfig = { | ||
| name: name, | ||
| version: version$1, | ||
| description: description, | ||
| type: type, | ||
| bin: bin, | ||
| main: main$1, | ||
| module: module$1, | ||
| types: types, | ||
| exports: exports$1, | ||
| files: files, | ||
| scripts: scripts, | ||
| repository: repository, | ||
| keywords: keywords, | ||
| author: author, | ||
| license: license, | ||
| bugs: bugs, | ||
| homepage: homepage, | ||
| devDependencies: devDependencies, | ||
| dependencies: dependencies, | ||
| publishConfig: publishConfig | ||
| }; | ||
| const { version } = packageConfig; | ||
| const helpInfo = () => { | ||
@@ -18,0 +104,0 @@ index.errorLog(`Try '${index.name} --help' for more information.`); |
+94
-8
| #!/usr/bin/env node | ||
| import { createInterface } from 'readline'; | ||
| import { e as errorLog, n as name, m as mv } from './shared/node-mv.2a305ff8.mjs'; | ||
| import { e as errorLog, n as name$1, m as mv } from './shared/node-mv.2a305ff8.mjs'; | ||
| import 'node:fs'; | ||
@@ -10,10 +10,96 @@ import 'makedirp'; | ||
| const version = "1.0.3"; | ||
| const name = "@lxf2513/node-mv"; | ||
| const version$1 = "1.0.4"; | ||
| const description = "The 'mv' command implementation for nodejs.It will create all the necessary directories and destination file which not exist."; | ||
| const type = "module"; | ||
| const bin = { | ||
| nodemv: "./dist/bin.mjs" | ||
| }; | ||
| const main$1 = "./dist/index.cjs"; | ||
| const module = "./dist/index.mjs"; | ||
| const types = "./dist/index.d.cts"; | ||
| const exports = { | ||
| ".": { | ||
| "import": { | ||
| types: "./dist/index.d.mts", | ||
| "default": "./dist/index.mjs" | ||
| }, | ||
| require: { | ||
| types: "./dist/index.d.cts", | ||
| "default": "./dist/index.cjs" | ||
| } | ||
| } | ||
| }; | ||
| const files = [ | ||
| "dist" | ||
| ]; | ||
| const scripts = { | ||
| "type-check": "tsc --strict --noEmit", | ||
| format: "prettier --write src/", | ||
| build: "unbuild", | ||
| release: "npm publish" | ||
| }; | ||
| const repository = { | ||
| type: "git", | ||
| url: "git+git@github.com:luoxiangfan/node-mv.git" | ||
| }; | ||
| const keywords = [ | ||
| "mv", | ||
| "move", | ||
| "node mv", | ||
| "rename", | ||
| "file", | ||
| "folder", | ||
| "recursive" | ||
| ]; | ||
| const author = "lxf <infiniment@163.com>"; | ||
| const license = "MIT"; | ||
| const bugs = { | ||
| url: "https://github.com/luoxiangfan/node-mv/issues" | ||
| }; | ||
| const homepage = "https://github.com/luoxiangfan/node-mv#readme"; | ||
| const devDependencies = { | ||
| "@types/node": "^22.10.0", | ||
| prettier: "^3.4.1", | ||
| typescript: "^5.7.2", | ||
| unbuild: "^2.0.0" | ||
| }; | ||
| const dependencies = { | ||
| makedirp: "^1.1.1", | ||
| "node-cpr": "^1.2.2", | ||
| "node-rmrf": "^1.0.4" | ||
| }; | ||
| const publishConfig = { | ||
| access: "public" | ||
| }; | ||
| const packageConfig = { | ||
| name: name, | ||
| version: version$1, | ||
| description: description, | ||
| type: type, | ||
| bin: bin, | ||
| main: main$1, | ||
| module: module, | ||
| types: types, | ||
| exports: exports, | ||
| files: files, | ||
| scripts: scripts, | ||
| repository: repository, | ||
| keywords: keywords, | ||
| author: author, | ||
| license: license, | ||
| bugs: bugs, | ||
| homepage: homepage, | ||
| devDependencies: devDependencies, | ||
| dependencies: dependencies, | ||
| publishConfig: publishConfig | ||
| }; | ||
| const { version } = packageConfig; | ||
| const helpInfo = () => { | ||
| errorLog(`Try '${name} --help' for more information.`); | ||
| errorLog(`Try '${name$1} --help' for more information.`); | ||
| }; | ||
| const help = `${name} ${version} | ||
| const help = `${name$1} ${version} | ||
| Usage: ${name} [OPTION]... SOURCE... DIRECTORY | ||
| Usage: ${name$1} [OPTION]... SOURCE... DIRECTORY | ||
| Rename SOURCE to DEST, or move SOURCE(s) to DIRECTORY. | ||
@@ -43,3 +129,3 @@ | ||
| if (!_args.length || _args.length === 1 && idx > -1) { | ||
| errorLog(`${name}: missing file operand`); | ||
| errorLog(`${name$1}: missing file operand`); | ||
| helpInfo(); | ||
@@ -67,3 +153,3 @@ return 1; | ||
| } else if (arg === "-v" || arg === "--version") { | ||
| console.log(`${name} ${version}`); | ||
| console.log(`${name$1} ${version}`); | ||
| return 0; | ||
@@ -76,3 +162,3 @@ } else if (arg === "-n" || arg === "--no-clobber") { | ||
| } else { | ||
| errorLog(`${name}: unknown option: ${arg}`); | ||
| errorLog(`${name$1}: unknown option: ${arg}`); | ||
| helpInfo(); | ||
@@ -79,0 +165,0 @@ return 1; |
+6
-6
| { | ||
| "name": "@lxf2513/node-mv", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "The 'mv' command implementation for nodejs.It will create all the necessary directories and destination file which not exist.", | ||
@@ -53,10 +53,10 @@ "type": "module", | ||
| "devDependencies": { | ||
| "@types/node": "^22.9.0", | ||
| "prettier": "^3.3.3", | ||
| "typescript": "^5.6.3", | ||
| "@types/node": "^22.10.0", | ||
| "prettier": "^3.4.1", | ||
| "typescript": "^5.7.2", | ||
| "unbuild": "^2.0.0" | ||
| }, | ||
| "dependencies": { | ||
| "makedirp": "^1.1.0", | ||
| "node-cpr": "^1.1.0", | ||
| "makedirp": "^1.1.1", | ||
| "node-cpr": "^1.2.2", | ||
| "node-rmrf": "^1.0.4" | ||
@@ -63,0 +63,0 @@ }, |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
20642
21.59%610
39.27%7
16.67%Updated
Updated