How To Use
Global Methods
The compile
and format
are two global methods of the @fluentfixture/format package. Global methods have default configurations and cannot be modified.
Compile
The compile
method compiles the template for reusability. Pre-compiled templates extremely fast according to the format
method for repeating usages. It doesn't require a source object during the compilation process.
Format
The format
method converts the template and the source object directly to a string.
Formatter Instance
For advanced use cases, a new Formatter
instance can be used. New instance can be useful, especially for modifying or extendingn the built-in pipe functions.
Last updated