UNPKG

tiny-server-essentials

Version:

A good utility toolkit to unify Express v5 and Socket.IO v4 into a seamless development experience with modular helpers, server wrappers, and WebSocket tools.

30 lines 979 B
export default TinyWebEssentials; /** * Central access point for all essential modules provided by the TinyWeb toolkit. * * This class acts as a namespace-like container to group the Express, Socket.IO, * server instance tools, and utility features in a unified API. * * Example: * ```js * import TinyWebEssentials from 'tiny-server-essentials'; * * const server1 = TinyWebEssentials.Express(); * const server2 = TinyWebEssentials.Io(); * const instance = new TinyWebEssentials.Instance(); * ``` */ declare class TinyWebEssentials { /** * Utility functions such as IP extractors and filters. */ static Utils: typeof Utils; static Instance: typeof TinyWebInstance; static Express: typeof TinyExpress; static Io: typeof TinyIo; } import * as Utils from './Utils.mjs'; import TinyWebInstance from './TinyWebInstance.mjs'; import TinyExpress from './TinyExpress.mjs'; import TinyIo from './TinyIo.mjs'; //# sourceMappingURL=index.d.mts.map