@json-serialization/binary
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

@json-serialization/binary

English | 简体中文

Introduction

@json-serialization/binary provide s a binary serialization and deserialization mechanism, supporting ArrayBuffer, Buffer, Blob, File, Uint8Array these data types.

Note: @json-serialization/binary needs to be used in conjunction with json-serialization. This is an extensible asynchronous JSON serialization library. You can get to know it by reading this document.

Precautions

  • Considering that Buffer is not supported in a web environment, Blob and File may not be supported in lower versions of Node.js environment. During deserialization, @json-serialization/binary may convert these three data types to and from each other to ensure adaptation to the running environment.

  • In order to prevent Buffer from being preprocessed by JSON.stringify, @json-serialization/binary will internally set the toJSON attribute on the Buffer object instance, with the value set to null. Please pay attention to and handle the possible Influence.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @json-serialization/binary

Weekly Downloads

6

Version

0.0.3

License

MIT

Unpacked Size

58.7 kB

Total Files

11

Last publish

Collaborators

  • memo-cn