rmcache 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Lonewolfyx
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # rmcache
2
+
3
+ Remove frontend junk files.
4
+
5
+ ```bash
6
+ npx rmcache
7
+ ```
8
+
9
+ ## License
10
+
11
+ [MIT](./LICENSE) License © [lonewolfyx](https://github.com/lonewolfyx)
package/bin/cli.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import('../dist/cli.mjs')
package/dist/cli.d.mts ADDED
@@ -0,0 +1 @@
1
+ export { };
package/dist/cli.mjs ADDED
@@ -0,0 +1,175 @@
1
+ import * as process$1 from "node:process";
2
+ import { intro, outro } from "@clack/prompts";
3
+ import cac from "cac";
4
+ import { glob } from "glob";
5
+ import { rimraf } from "rimraf";
6
+ import { isAbsolute, resolve } from "node:path";
7
+
8
+ //#region rolldown:runtime
9
+ var __create = Object.create;
10
+ var __defProp = Object.defineProperty;
11
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
+ var __getOwnPropNames = Object.getOwnPropertyNames;
13
+ var __getProtoOf = Object.getPrototypeOf;
14
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
19
+ key = keys[i];
20
+ if (!__hasOwnProp.call(to, key) && key !== except) {
21
+ __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
25
+ }
26
+ }
27
+ }
28
+ return to;
29
+ };
30
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
31
+ value: mod,
32
+ enumerable: true
33
+ }) : target, mod));
34
+
35
+ //#endregion
36
+ //#region node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
37
+ var require_picocolors = /* @__PURE__ */ __commonJSMin(((exports, module) => {
38
+ let p = process || {}, argv = p.argv || [], env = p.env || {};
39
+ let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
40
+ let formatter = (open, close, replace = open) => (input) => {
41
+ let string = "" + input, index = string.indexOf(close, open.length);
42
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close;
43
+ };
44
+ let replaceClose = (string, close, replace, index) => {
45
+ let result = "", cursor = 0;
46
+ do {
47
+ result += string.substring(cursor, index) + replace;
48
+ cursor = index + close.length;
49
+ index = string.indexOf(close, cursor);
50
+ } while (~index);
51
+ return result + string.substring(cursor);
52
+ };
53
+ let createColors = (enabled = isColorSupported) => {
54
+ let f = enabled ? formatter : () => String;
55
+ return {
56
+ isColorSupported: enabled,
57
+ reset: f("\x1B[0m", "\x1B[0m"),
58
+ bold: f("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
59
+ dim: f("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
60
+ italic: f("\x1B[3m", "\x1B[23m"),
61
+ underline: f("\x1B[4m", "\x1B[24m"),
62
+ inverse: f("\x1B[7m", "\x1B[27m"),
63
+ hidden: f("\x1B[8m", "\x1B[28m"),
64
+ strikethrough: f("\x1B[9m", "\x1B[29m"),
65
+ black: f("\x1B[30m", "\x1B[39m"),
66
+ red: f("\x1B[31m", "\x1B[39m"),
67
+ green: f("\x1B[32m", "\x1B[39m"),
68
+ yellow: f("\x1B[33m", "\x1B[39m"),
69
+ blue: f("\x1B[34m", "\x1B[39m"),
70
+ magenta: f("\x1B[35m", "\x1B[39m"),
71
+ cyan: f("\x1B[36m", "\x1B[39m"),
72
+ white: f("\x1B[37m", "\x1B[39m"),
73
+ gray: f("\x1B[90m", "\x1B[39m"),
74
+ bgBlack: f("\x1B[40m", "\x1B[49m"),
75
+ bgRed: f("\x1B[41m", "\x1B[49m"),
76
+ bgGreen: f("\x1B[42m", "\x1B[49m"),
77
+ bgYellow: f("\x1B[43m", "\x1B[49m"),
78
+ bgBlue: f("\x1B[44m", "\x1B[49m"),
79
+ bgMagenta: f("\x1B[45m", "\x1B[49m"),
80
+ bgCyan: f("\x1B[46m", "\x1B[49m"),
81
+ bgWhite: f("\x1B[47m", "\x1B[49m"),
82
+ blackBright: f("\x1B[90m", "\x1B[39m"),
83
+ redBright: f("\x1B[91m", "\x1B[39m"),
84
+ greenBright: f("\x1B[92m", "\x1B[39m"),
85
+ yellowBright: f("\x1B[93m", "\x1B[39m"),
86
+ blueBright: f("\x1B[94m", "\x1B[39m"),
87
+ magentaBright: f("\x1B[95m", "\x1B[39m"),
88
+ cyanBright: f("\x1B[96m", "\x1B[39m"),
89
+ whiteBright: f("\x1B[97m", "\x1B[39m"),
90
+ bgBlackBright: f("\x1B[100m", "\x1B[49m"),
91
+ bgRedBright: f("\x1B[101m", "\x1B[49m"),
92
+ bgGreenBright: f("\x1B[102m", "\x1B[49m"),
93
+ bgYellowBright: f("\x1B[103m", "\x1B[49m"),
94
+ bgBlueBright: f("\x1B[104m", "\x1B[49m"),
95
+ bgMagentaBright: f("\x1B[105m", "\x1B[49m"),
96
+ bgCyanBright: f("\x1B[106m", "\x1B[49m"),
97
+ bgWhiteBright: f("\x1B[107m", "\x1B[49m")
98
+ };
99
+ };
100
+ module.exports = createColors();
101
+ module.exports.createColors = createColors;
102
+ }));
103
+
104
+ //#endregion
105
+ //#region src/config.ts
106
+ var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
107
+ const resolveConfig = (options) => {
108
+ return { cwd: isAbsolute(options.cwd) ? options.cwd : resolve(process.cwd(), options.cwd) };
109
+ };
110
+
111
+ //#endregion
112
+ //#region src/constants.ts
113
+ const JUNK_DIRS = [
114
+ "node_modules",
115
+ "jspm_packages",
116
+ "web_modules",
117
+ ".cache",
118
+ "dist",
119
+ ".nuxt",
120
+ ".parcel-cache",
121
+ ".next",
122
+ "out",
123
+ ".vuepress/dist",
124
+ ".temp",
125
+ ".svelte-kit",
126
+ ".docusaurus",
127
+ ".serverless",
128
+ ".fusebox",
129
+ ".dynamodb",
130
+ ".firebase",
131
+ ".tern-port",
132
+ ".turbo"
133
+ ];
134
+ const JUNK_FILES = [
135
+ "package-lock.json",
136
+ "pnpm-lock.yaml",
137
+ "yarn.lock",
138
+ "bun.lockb",
139
+ "deno.lock",
140
+ "vlt.json"
141
+ ];
142
+
143
+ //#endregion
144
+ //#region package.json
145
+ var name = "rmcache";
146
+ var version = "1.0.0";
147
+
148
+ //#endregion
149
+ //#region src/cli.ts
150
+ const cli = cac(name);
151
+ cli.command("").option("-c,--cwd <path>", "working directory", { default: process$1.cwd() }).action(async (options) => {
152
+ intro(import_picocolors.default.bgCyan(` ${name} [v${version}]`));
153
+ const config = resolveConfig(options);
154
+ const folders = await glob([...JUNK_DIRS.map((d) => `**/${d}/`), ...JUNK_FILES.map((f) => `**/${f}`)], {
155
+ cwd: config.cwd,
156
+ absolute: true,
157
+ nodir: false,
158
+ ignore: { ignored: (p) => {
159
+ const pathString = p.fullpath();
160
+ return pathString.includes("node_modules/") && !pathString.endsWith("node_modules/");
161
+ } }
162
+ });
163
+ if (folders.length > 0) await Promise.all(folders.map(async (folder) => {
164
+ console.log(folder.replace(config.cwd, ""));
165
+ await rimraf(folder);
166
+ }));
167
+ outro(`Done.`);
168
+ });
169
+ cli.help();
170
+ cli.version(version);
171
+ cli.parse();
172
+
173
+ //#endregion
174
+ export { };
175
+ //# sourceMappingURL=cli.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.mjs","names":["process","pc"],"sources":["../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js","../src/config.ts","../src/constants.ts","../package.json","../src/cli.ts"],"sourcesContent":["let p = process || {}, argv = p.argv || [], env = p.env || {}\nlet isColorSupported =\n\t!(!!env.NO_COLOR || argv.includes(\"--no-color\")) &&\n\t(!!env.FORCE_COLOR || argv.includes(\"--color\") || p.platform === \"win32\" || ((p.stdout || {}).isTTY && env.TERM !== \"dumb\") || !!env.CI)\n\nlet formatter = (open, close, replace = open) =>\n\tinput => {\n\t\tlet string = \"\" + input, index = string.indexOf(close, open.length)\n\t\treturn ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close\n\t}\n\nlet replaceClose = (string, close, replace, index) => {\n\tlet result = \"\", cursor = 0\n\tdo {\n\t\tresult += string.substring(cursor, index) + replace\n\t\tcursor = index + close.length\n\t\tindex = string.indexOf(close, cursor)\n\t} while (~index)\n\treturn result + string.substring(cursor)\n}\n\nlet createColors = (enabled = isColorSupported) => {\n\tlet f = enabled ? formatter : () => String\n\treturn {\n\t\tisColorSupported: enabled,\n\t\treset: f(\"\\x1b[0m\", \"\\x1b[0m\"),\n\t\tbold: f(\"\\x1b[1m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[1m\"),\n\t\tdim: f(\"\\x1b[2m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[2m\"),\n\t\titalic: f(\"\\x1b[3m\", \"\\x1b[23m\"),\n\t\tunderline: f(\"\\x1b[4m\", \"\\x1b[24m\"),\n\t\tinverse: f(\"\\x1b[7m\", \"\\x1b[27m\"),\n\t\thidden: f(\"\\x1b[8m\", \"\\x1b[28m\"),\n\t\tstrikethrough: f(\"\\x1b[9m\", \"\\x1b[29m\"),\n\n\t\tblack: f(\"\\x1b[30m\", \"\\x1b[39m\"),\n\t\tred: f(\"\\x1b[31m\", \"\\x1b[39m\"),\n\t\tgreen: f(\"\\x1b[32m\", \"\\x1b[39m\"),\n\t\tyellow: f(\"\\x1b[33m\", \"\\x1b[39m\"),\n\t\tblue: f(\"\\x1b[34m\", \"\\x1b[39m\"),\n\t\tmagenta: f(\"\\x1b[35m\", \"\\x1b[39m\"),\n\t\tcyan: f(\"\\x1b[36m\", \"\\x1b[39m\"),\n\t\twhite: f(\"\\x1b[37m\", \"\\x1b[39m\"),\n\t\tgray: f(\"\\x1b[90m\", \"\\x1b[39m\"),\n\n\t\tbgBlack: f(\"\\x1b[40m\", \"\\x1b[49m\"),\n\t\tbgRed: f(\"\\x1b[41m\", \"\\x1b[49m\"),\n\t\tbgGreen: f(\"\\x1b[42m\", \"\\x1b[49m\"),\n\t\tbgYellow: f(\"\\x1b[43m\", \"\\x1b[49m\"),\n\t\tbgBlue: f(\"\\x1b[44m\", \"\\x1b[49m\"),\n\t\tbgMagenta: f(\"\\x1b[45m\", \"\\x1b[49m\"),\n\t\tbgCyan: f(\"\\x1b[46m\", \"\\x1b[49m\"),\n\t\tbgWhite: f(\"\\x1b[47m\", \"\\x1b[49m\"),\n\n\t\tblackBright: f(\"\\x1b[90m\", \"\\x1b[39m\"),\n\t\tredBright: f(\"\\x1b[91m\", \"\\x1b[39m\"),\n\t\tgreenBright: f(\"\\x1b[92m\", \"\\x1b[39m\"),\n\t\tyellowBright: f(\"\\x1b[93m\", \"\\x1b[39m\"),\n\t\tblueBright: f(\"\\x1b[94m\", \"\\x1b[39m\"),\n\t\tmagentaBright: f(\"\\x1b[95m\", \"\\x1b[39m\"),\n\t\tcyanBright: f(\"\\x1b[96m\", \"\\x1b[39m\"),\n\t\twhiteBright: f(\"\\x1b[97m\", \"\\x1b[39m\"),\n\n\t\tbgBlackBright: f(\"\\x1b[100m\", \"\\x1b[49m\"),\n\t\tbgRedBright: f(\"\\x1b[101m\", \"\\x1b[49m\"),\n\t\tbgGreenBright: f(\"\\x1b[102m\", \"\\x1b[49m\"),\n\t\tbgYellowBright: f(\"\\x1b[103m\", \"\\x1b[49m\"),\n\t\tbgBlueBright: f(\"\\x1b[104m\", \"\\x1b[49m\"),\n\t\tbgMagentaBright: f(\"\\x1b[105m\", \"\\x1b[49m\"),\n\t\tbgCyanBright: f(\"\\x1b[106m\", \"\\x1b[49m\"),\n\t\tbgWhiteBright: f(\"\\x1b[107m\", \"\\x1b[49m\"),\n\t}\n}\n\nmodule.exports = createColors()\nmodule.exports.createColors = createColors\n","import type { IConfig, IOptions } from '@/types.ts'\nimport { isAbsolute, resolve } from 'node:path'\n\nexport const resolveConfig = (options: IOptions): IConfig => {\n return {\n cwd: isAbsolute(options.cwd) ? options.cwd : resolve(process.cwd(), options.cwd),\n }\n}\n","export const JUNK_DIRS = [\n 'node_modules',\n 'jspm_packages',\n 'web_modules',\n '.cache',\n 'dist',\n '.nuxt',\n '.parcel-cache',\n '.next',\n 'out',\n '.vuepress/dist',\n '.temp',\n '.svelte-kit',\n '.docusaurus',\n '.serverless',\n '.fusebox',\n '.dynamodb',\n '.firebase',\n '.tern-port',\n '.turbo',\n]\n\nexport const JUNK_FILES = [\n 'package-lock.json', // npm\n 'pnpm-lock.yaml', // pnpm\n 'yarn.lock', // yarn\n 'bun.lockb', // bun\n 'deno.lock', // deno\n 'vlt.json', // vlt\n]\n","","import type { IOptions } from '@/types.ts'\nimport * as process from 'node:process'\nimport { intro, outro } from '@clack/prompts'\nimport cac from 'cac'\nimport { glob } from 'glob'\nimport pc from 'picocolors'\nimport { rimraf } from 'rimraf'\nimport { resolveConfig } from '@/config.ts'\nimport { JUNK_DIRS, JUNK_FILES } from '@/constants.ts'\nimport { name, version } from '../package.json'\n\nconst cli = cac(name)\n\ncli.command('')\n .option('-c,--cwd <path>', 'working directory', { default: process.cwd() })\n .action(async (options: IOptions) => {\n intro(pc.bgCyan(` ${name} [v${version}]`))\n\n const config = resolveConfig(options)\n\n const patterns = [\n ...JUNK_DIRS.map(d => `**/${d}/`),\n ...JUNK_FILES.map(f => `**/${f}`),\n ]\n\n const folders = await glob(patterns, {\n cwd: config.cwd,\n absolute: true,\n nodir: false,\n ignore: {\n ignored: (p) => {\n // If the path already contains node_modules and does not end with node_modules, it is going deeper and can be ignored\n const pathString = p.fullpath()\n return pathString.includes('node_modules/') && !pathString.endsWith('node_modules/')\n },\n },\n })\n\n if (folders.length > 0) {\n await Promise.all(folders.map(async (folder) => {\n console.log(folder.replace(config.cwd, ''))\n await rimraf(folder)\n }))\n }\n\n outro(`Done.`)\n })\n\ncli.help()\ncli.version(version)\ncli.parse()\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAA,IAAI,IAAI,WAAW,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE;CAC7D,IAAI,mBACH,EAAE,CAAC,CAAC,IAAI,YAAY,KAAK,SAAS,aAAa,MAC9C,CAAC,CAAC,IAAI,eAAe,KAA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G,UAAU,KAAI,MAAK,MAAM,EAAE,GAAG,EACjC,GAAG,WAAW,KAAI,MAAK,MAAM,IAAI,CACpC,EAEoC;EACjC,KAAK,OAAO;EACZ,UAAU;EACV,OAAO;EACP,QAAQ,EACJ,UAAU,MAAM;GAEZ,MAAM,aAAa,EAAE,UAAU;AAC/B,UAAO,WAAW,SAAS,gBAAgB,IAAI,CAAC,WAAW,SAAS,gBAAgB;KAE3F;EACJ,CAAC;AAEF,KAAI,QAAQ,SAAS,EACjB,OAAM,QAAQ,IAAI,QAAQ,IAAI,OAAO,WAAW;AAC5C,UAAQ,IAAI,OAAO,QAAQ,OAAO,KAAK,GAAG,CAAC;AAC3C,QAAM,OAAO,OAAO;GACtB,CAAC;AAGP,OAAM,QAAQ;EAChB;AAEN,IAAI,MAAM;AACV,IAAI,QAAQ,QAAQ;AACpB,IAAI,OAAO"}
package/package.json CHANGED
@@ -1,12 +1,68 @@
1
1
  {
2
- "name": "rmcache",
3
- "version": "0.0.0",
4
- "main": "index.js",
5
- "scripts": {
6
- "test": "echo \"Error: no test specified\" && exit 1"
7
- },
8
- "keywords": [],
9
- "author": "",
10
- "license": "ISC",
11
- "description": ""
12
- }
2
+ "name": "rmcache",
3
+ "type": "module",
4
+ "version": "1.0.0",
5
+ "packageManager": "pnpm@10.15.1",
6
+ "description": "💨 Remove frontend junk files.",
7
+ "author": "lonewolfyx <olddrivero.king@qq.com>",
8
+ "license": "MIT",
9
+ "homepage": "https://github.com/lonewolfyx/rmcache",
10
+ "bugs": {
11
+ "url": "https://github.com/lonewolfyx/rmcache/issues"
12
+ },
13
+ "keywords": [
14
+ "cache",
15
+ "clear",
16
+ "module"
17
+ ],
18
+ "exports": {
19
+ ".": "./dist/cli.mjs",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "types": "./dist/cli.d.mts",
23
+ "bin": {
24
+ "rmcache": "./bin/cli.js",
25
+ "rmc": "./bin/cli.js"
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "scripts": {
31
+ "dev": "tsdown --watch",
32
+ "build": "tsdown",
33
+ "lint": "eslint",
34
+ "lint:fix": "eslint --fix",
35
+ "prepublishOnly": "pnpm build",
36
+ "prepare": "simple-git-hooks"
37
+ },
38
+ "publishConfig": {
39
+ "registry": "https://registry.npmjs.org",
40
+ "access": "public"
41
+ },
42
+ "dependencies": {
43
+ "@clack/prompts": "^1.0.0",
44
+ "cac": "^6.7.14",
45
+ "find-up": "^8.0.0",
46
+ "glob": "^13.0.0",
47
+ "rimraf": "^6.1.2"
48
+ },
49
+ "devDependencies": {
50
+ "@antfu/eslint-config": "^7.2.0",
51
+ "@lonewolfyx/tsconfig": "^0.0.6",
52
+ "@types/node": "^25.1.0",
53
+ "eslint": "^9.39.2",
54
+ "lint-staged": "^16.2.7",
55
+ "picocolors": "^1.1.1",
56
+ "simple-git-hooks": "^2.13.1",
57
+ "tsdown": "^0.20.1",
58
+ "tsx": "^4.21.0",
59
+ "typescript": "^5.9.3"
60
+ },
61
+ "simple-git-hooks": {
62
+ "pre-commit": "npx lint-staged",
63
+ "commit-msg": "node scripts/verify-commit.js"
64
+ },
65
+ "lint-staged": {
66
+ "*": "eslint --fix"
67
+ }
68
+ }