PHP 8.2.30
Preview: create-id.js Size: 663 B
//proc/thread-self/root/home/byroehnu/.trash/node_modules11/node-cron/dist/esm/create-id.js

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createID = createID;
const node_crypto_1 = __importDefault(require("node:crypto"));
function createID(prefix = '', length = 16) {
    const charset = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
    const values = node_crypto_1.default.randomBytes(length);
    const id = Array.from(values, v => charset[v % charset.length]).join('');
    return prefix ? `${prefix}-${id}` : id;
}
//# sourceMappingURL=create-id.js.map

Directory Contents

Dirs: 5 × Files: 12

Name Size Perms Modified Actions
pattern DIR
- drwxr-xr-x 2026-02-21 00:53:58
Edit Download
promise DIR
- drwxr-xr-x 2026-02-21 00:54:22
Edit Download
scheduler DIR
- drwxr-xr-x 2026-02-21 00:54:22
Edit Download
tasks DIR
- drwxr-xr-x 2026-02-21 00:54:22
Edit Download
time DIR
- drwxr-xr-x 2026-02-21 00:54:22
Edit Download
76 B lrw-r--r-- 2026-02-21 00:54:14
Edit Download
663 B lrw-r--r-- 2026-02-21 00:53:38
Edit Download
517 B lrw-r--r-- 2026-02-21 00:54:04
Edit Download
226 B lrw-r--r-- 2026-02-21 00:54:20
Edit Download
1.46 KB lrw-r--r-- 2026-02-21 00:53:52
Edit Download
1.56 KB lrw-r--r-- 2026-02-21 00:54:04
Edit Download
964 B lrw-r--r-- 2026-02-21 00:54:20
Edit Download
2.55 KB lrw-r--r-- 2026-02-21 00:53:58
Edit Download
2.01 KB lrw-r--r-- 2026-02-21 00:54:06
Edit Download
361 B lrw-r--r-- 2026-02-21 00:54:22
Edit Download
837 B lrw-r--r-- 2026-02-21 00:54:00
Edit Download
1015 B lrw-r--r-- 2026-02-21 00:54:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).