@fastify/fast-json-stringify-compiler

Build and manage the fast-json-stringify instances for the fastify framework

Usage no npm install needed!

<script type="module">
  import fastifyFastJsonStringifyCompiler from 'https://cdn.skypack.dev/@fastify/fast-json-stringify-compiler';
</script>

README

@fastify/fast-json-stringify-compiler

Build and manage the fast-json-stringify instances for the fastify framework. This package is responsible for compiling the application's response JSON schemas into optimized functions to speed up the response time.

js-standard-style Continuous Integration

Versions

@fastify/fast-json-stringify-compiler fast-json-stringify Default in fastify
v1.x v3.x ^4.x

fast-json-stringify Configuration

The fast-json-stringify configuration is the default one. You can check it the default settings in the fast-json-stringify option documentation.

You can also override the default configuration by passing the serializerOpts configuration to the Fastify instance.

Usage

This module is already used as default by Fastify. If you need to provide to your server instance a different version, refer to the official doc.

How it works

This module provide a factory function to produce Serializer Compilers functions.

License

Licensed under MIT.