Options for the EncodeToolsNative
constructor that will be used if the corresponding native module is available
A set of fallback options to be used if the native module needed for the option in the first argument is missing
Lists all native modules that can currently be used
Combined map of all SerializationFormat
and ImageFormat
entries to their respective MIME Types
Map of MIME Type to each ImageFormat
or SerializationFormat
.
Instance of toPojo to use when serializing objects
Returns an EncodeTools instance with the default properties
Adjust brightness of image
Image
Format to save result as
Adjust brightness of image
Image
Format to save result as
Adjust brightness of image
Image
Format to save result as
Compresses arbitrary data using the provided format and any options
Data to compress
Format to use
Options
Compresses arbitrary data using the provided format and any options
Data to compress
Format to use
Options
Compresses arbitrary data using the provided format and any options
Data to compress
Format to use
Options
Saves an image in the provided format, performing no operations on the image
Image
Format to save result as
Saves an image in the provided format, performing no operations on the image
Image
Format to save result as
Saves an image in the provided format, performing no operations on the image
Image
Format to save result as
Crops an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Crops an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Crops an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decodes binary data from the provided format returning either a node.js buffer.
Decompresses arbitrary data using the provided format and any options
Data to decompress
Format to use
Decompresses arbitrary data using the provided format and any options
Data to decompress
Format to use
Decompresses arbitrary data using the provided format and any options
Data to decompress
Format to use
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Deserializes an object serialized using one of the available algorithms, returning the result as an object
Data to deserialize
Algorithm to deserialize with
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Encodes binary data using the provided format returning either a node.js buffer, array buffer, or string
Hashes data using the provided algorithm, returning a node.js Buffer.
Hashes an object using the provided algorithm, returning a node.js Buffer.
Hashes data using the provided algorithm, returning a node.js Buffer.
Extracts a SerializationFormat
or ImageFormat
from the specified HTTP header,
or defaults to the SerializationFormat
or Image Format
in the options of the encoder.
Extracts a ImageFormat
from the specified HTTP header,
or defaults to the Image Format
in the options of the encoder.
Extracts a SerializationFormat
from the specified HTTP header,
or defaults to the SerializationFormat
in the options of the encoder.
Resizes an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Resizes an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Resizes an image and returns a Buffer containing the result in the provided format
Image
Height/Width to resize to
Format to save result as
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Serializes an object using one of the available algorithms, returning the result as a Buffer or a string
Object to serialize
Algorithm to serialize with
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Generates a unique ID using one of the available algorithms, returning the result as a Buffer, string or number.
Algorithm to use to generate the unique id
Extra args to pass to the ID generation function
Creates an an EncodeTools instance with the provided properties
Generated using TypeDoc
Contains tools for encoding/decoding data in different circumstances.
Will automatically use native modules (via
EncodeToolsNative
) if they are installed.