REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.03 KB
Close
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/simple-update-notifier/src/cache.ts
Text
Base64
import os from 'os'; import path from 'path'; import fs from 'fs'; const homeDirectory = os.homedir(); const configDir = process.env.XDG_CONFIG_HOME || path.join(homeDirectory, '.config', 'simple-update-notifier'); const getConfigFile = (packageName: string) => { return path.join( configDir, `${packageName.replace('@', '').replace('/', '__')}.json` ); }; export const createConfigDir = () => { if (!fs.existsSync(configDir)) { fs.mkdirSync(configDir, { recursive: true }); } }; export const getLastUpdate = (packageName: string) => { const configFile = getConfigFile(packageName); try { if (!fs.existsSync(configFile)) { return undefined; } const file = JSON.parse(fs.readFileSync(configFile, 'utf8')); return file.lastUpdateCheck as number; } catch { return undefined; } }; export const saveLastUpdate = (packageName: string) => { const configFile = getConfigFile(packageName); fs.writeFileSync( configFile, JSON.stringify({ lastUpdateCheck: new Date().getTime() }) ); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 11
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
borderedText.ts
371 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cache.spec.ts
527 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
cache.ts
1.03 KB
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getDistVersion.spec.ts
810 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
getDistVersion.ts
811 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hasNewVersion.spec.ts
2.32 KB
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
hasNewVersion.ts
1.12 KB
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.spec.ts
744 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
984 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
isNpmOrYarn.ts
444 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
types.ts
202 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).