UNPKG

diginext-utils

Version:
72 lines 2.6 kB
/** * Diginext Utils - Professional utility library * @packageDocumentation */ // Re-export all modules as namespaces export * as array from "./array.js"; export * as object from "./object.js"; export * as math from "./math.js"; export * as string from "./string.js"; export * as file from "./file.js"; export * as device from "./device.js"; export * as date from "./date.js"; export * as email from "./email.js"; export * as gameboi from "./gameboi.js"; export * as images from "./images.js"; export * as name from "./name.js"; export * as permission from "./permission.js"; export * as response from "./response.js"; export * as xconsole from "./xconsole.js"; export * as cached from "./cached.js"; export * as html from "./html.js"; export * as lib from "./lib.js"; export * as slug from "./Slug.js"; // For tree-shaking, users can import directly from subpaths: // import { sum, average } from 'diginext-utils/array' // import { isNull, toBool } from 'diginext-utils/object' // import { randomInt, clamp } from 'diginext-utils/math' // Backward compatibility - default export // Note: This uses dynamic imports which may not work in all environments import * as arrayModule from "./array.js"; import * as objectModule from "./object.js"; import * as mathModule from "./math.js"; import * as stringModule from "./string.js"; import * as fileModule from "./file.js"; import * as deviceModule from "./device.js"; import * as dateModule from "./date.js"; import * as emailModule from "./email.js"; import * as gameboiModule from "./gameboi.js"; import * as imagesModule from "./images.js"; import * as nameModule from "./name.js"; import * as permissionModule from "./permission.js"; import * as responseModule from "./response.js"; import * as xconsoleModule from "./xconsole.js"; import * as cachedModule from "./cached.js"; import * as htmlModule from "./html.js"; import * as libModule from "./lib.js"; import * as slugModule from "./Slug.js"; /** * Default export maintaining backward compatibility * @deprecated Use named exports instead for better tree-shaking */ export default { array: arrayModule, object: objectModule, math: mathModule, string: stringModule, file: fileModule, device: deviceModule, date: dateModule, email: emailModule, gameboi: gameboiModule, images: imagesModule, name: nameModule, permission: permissionModule, response: responseModule, xconsole: xconsoleModule, cached: cachedModule, html: htmlModule, lib: libModule, makeSlug: slugModule.makeSlug, }; //# sourceMappingURL=index.js.map