-
@litert/redis
is a Redis client library developed entirely in TypeScript, for NodeJS.All asynchronous operations are based on
Promise
, and it supports transactions and messaging.Features
- Support read/write separation.
- Support pipeline.
- Support multi and exec.
- Support subscribe and publish.
Installation
1npm install @litert/redis@^3.0.3
v3.0.3 CHANGES
Versions before v3.0.3 are marked as
deprecated
. Please upgrade to the latest version ASAP.- build(deps-dev): bump braces from 3.0.2 to 3.0.3 by @dependabot in https://github.com/litert/redis.js/pull/10
- fix(command): return keys in HMGET command correctly by @fenying in https://github.com/litert/redis.js/pull/11
- fix(protocol): decode “*-1” correctly by @fenying in https://github.com/litert/redis.js/pull/12
- Feat blmove command by @yunbookf in https://github.com/litert/redis.js/pull/13
Contributors
Read More -
The buffer-based encoding utility method for node.js.
Following types of encodings are supported:
Name Description Binary-Safe base64
The standard BASE64 encoding. Yes base64url
The URL-safe BASE64 encoding. Yes base62x
The BASE62x encoding. Yes base32
The standard BASE32 encoding. Yes hex
The hexadecimal encoding. Yes urlencode
The purely URL-safe encoding. Yes strict_uri
The extended URL-safe encoding. No Encoding
urlencode
This is a real urlencode implement, it will escape all bytes as
%xx
format, exceptingA-Z
,a-z
and0-9
. This is a binary-safe encoding.Binary-safe means it could work with binary data perfectly, without gibberish. And it’s all the same below.
Encoding
uri
This is a simple reference of method
encodeURIComponent
, so it works as methodencodeURIComponent
does. And it’s not a binary-safe encoding.Encoding
strict_uri
This is based on
uri
, but all special chars including"-"
,"."
,"_"
,"!"
,"*"
,"("
,")"
,"~"
,"'"
will be escaped. However, it’s still not a binary-safe encoding.NOTE: The data of
strict_uri
encoding, could be simply decoded by functiondecodeURIComponent
.Encoding
base64url
This is based on
base64
, while charactors"="
,"+"
,"/"
will be replaced with URL-safe charactors. This is a binary-safe encoding.Encoding
base62x
This is a variation of
base64
. And it is a binary-safe encoding.Installation
1npm install @litert/encodings@^2.3.0
v2.3.0 CHANGELOG
- config(deps): updated dependencies.
- fix(encoding): fixed decoding of the
urlencode
. - build(test): added test cases.
- build(project): upgraded the minimum version of Node.js to
v14
.
Read More -
@litert/redis
is a Redis client library developed entirely in TypeScript, for NodeJS.All asynchronous operations are based on
Promise
, and it supports transactions and messaging.Features
- Support read/write separation.
- Support pipeline.
- Support multi and exec.
- Support subscribe and publish.
Installation
1npm install @litert/redis@^3.0.2
v3.0.2 CHANGES
- fix(command): Incorrect preprocessing of arguments for
SREM
command. - feat(command): Added basic supports for
ZADD
,ZREM
,ZRANGE
commands. - fix(docs): Fixed the links to the command documents.
- build(test): Initialized test flows.
Contributors
Read More -
@litert/websocket
is a Websocket protocol implementation for NodeJS, developed using TypeScript.This library supports both client and server Websocket protocol implementations, providing a simple and easy-to-use API.
安装
1npm install @litert/websocket@^0.2.3
v0.2.3 CHANGELOG
- fix(connection): added default write-callback in case of missing uncaught exception.
Read More -
@litert/lwdfx
is an implement of the LwDFX (Light-weight Data Frame Exchange) protocol.安装
1npm install @litert/lwdfx@^1.1.3
v1.1.3 CHANGELOG
- fix(connection): did not reset timeout if it is zero.
Read More