1.6.0 • Published 4 years ago
@runejs/core v1.6.0

@runejs/core
Core logging, networking, compression, encryption, and additional buffer functionality for RuneJS applications.
@runejs/core
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/core/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/core/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/core/compression
- Exported class
Gziphandles Gzip compression and decompression. - Exported class
Bzip2handles Bzip2 compression and decompression.
@runejs/core/encryption
Provides XTEA encryption and decryption functionality, as well as a key file loader.
- Exported as class
Xtea
1.6.0
4 years ago
1.5.4
4 years ago
1.5.3
4 years ago
1.5.2
4 years ago
1.5.1
4 years ago
1.5.0
4 years ago
1.4.0
4 years ago
1.4.0-rc.0
4 years ago
1.4.0-rc.2
4 years ago
1.4.0-rc.1
4 years ago
1.4.0-rc.3
4 years ago
1.3.2
5 years ago
1.3.1
5 years ago
1.3.0
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
1.0.0-beta.0
5 years ago