2.0.1 • Published 9 months ago
@runejs/common v2.0.1

@runejs/common
Common logging, networking, compression, and other additional functionality for RuneJS applications.
@runejs/common
loggeris exported as a singleton Pino logging wrapper, offering the following functions:logger.info(...messages)logger.debug(...messages)logger.warn(...messages)logger.error(...messages)logger.fatal(...messages)logger.trace(...messages)
- Ability to set the Pino logging date/time formatting function via
setLoggerTimeFn(Pino.TimeFn) - Ability to set the Pino logging pretty print config value via
setLoggerPrettyPrint(boolean) - Setting of all Pino logging options via
setLoggerOptions(Pino.LoggerOptions)
@runejs/common/buffer
ByteBufferis the main export.- Node
Uint8Arraywrapper with additional utility functions. - Unified configurable
getandputmethods to easily move bytes within the buffer. - Int24, Smart, Long and String type support.
- Big endian, little endian, and mixed endian support.
- Bit access through
openBitBuffer(),putBits(), andcloseBitBuffer()
- Node
@runejs/common/net
SocketServer- Handles connections made to a RuneJS socket server.
SocketServer.launch(serverName, hostName, port, connectionHandlerFactory)- Spins up a new Node Socket server with the specified host and port.
ServerConfigOptions- Options for a configured Socket server, imported using the
parseServerConfig()function.
- Options for a configured Socket server, imported using the
@runejs/common/compression
- Exported class
Gziphandles Gzip compression and decompression. - Exported class
Bzip2handles Bzip2 compression and decompression.
@runejs/common/encryption
Provides XTEA encryption and decryption functionality, as well as a key file loader.
- Exported as class
Xtea
@runejs/common/color
Handles various color conversions needed by the game and tooling.
RGB(A)HSL(Hue, Saturation, Lightness)HSV(Hue, Saturation, Value/Brightness)HCL(Hue, Chroma, Luminance)LAB(Lightness, A, B)
2.0.2-beta.3
9 months ago
3.0.0-beta.5
3 years ago
3.0.0-beta.4
3 years ago
3.0.0-beta.7
3 years ago
3.0.0-beta.6
3 years ago
3.0.0-beta.9
3 years ago
3.0.0-beta.8
3 years ago
3.0.0-beta.10
3 years ago
3.0.0-beta.3
3 years ago
3.0.0-beta.1
4 years ago
3.0.0-beta.2
4 years ago
2.0.2-beta.1
4 years ago
2.0.2-beta.2
4 years ago
2.0.0-rc.15
4 years ago
2.0.0-rc.16
4 years ago
2.0.0-rc.14
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago
2.0.0-rc.13
4 years ago
2.0.0-rc.11
4 years ago
2.0.0-rc.12
4 years ago
2.0.0-rc.10
4 years ago
2.0.0-rc.6
4 years ago
2.0.0-rc.7
4 years ago
2.0.0-rc.8
4 years ago
2.0.0-rc.9
4 years ago
2.0.0-rc.5
4 years ago
2.0.0-rc.3
4 years ago
2.0.0-rc.4
4 years ago
2.0.0-rc.2
4 years ago
2.0.0-rc.1
4 years ago
1.0.0-beta.0
4 years ago