Skip to content

serde

Properties

The serde instance has no set properties!

Methods

The serde instance has no set methods!

Functions

encode

serde . encode (

     format: EncodeDecodeFormat
     value: any
     pretty: boolean?
)  -> ()

Encodes the given value using the given format.

decode

serde . decode (

     format: EncodeDecodeFormat
     encoded: buffer | string
)  -> ()

Decodes the given string using the given format into a lua value.

decompress

serde . decompress (

     format: CompressDecompressFormat
     s: buffer | string
)  -> ()

Decompresses the given string using the given format.

compress

serde . compress (

     format: CompressDecompressFormat
     s: buffer | string
     level: number?
)  -> ()

Compresses the given string using the given format.