Currently, the content returned from the generate function is then passed to JSON.stringify. We don't get the chance to use a different serialization model.
My use case is that I want to create a manifest.properties file instead of a manifest.json file. I can write my own generate function to create the output as a valid properties file, but then JSON.stringify wraps it in quotes and escapes all my newlines.
Can we have a serialize option that defaults to JSON.stringify, for those who want their own strategy for this?
Currently, the content returned from the
generate
function is then passed toJSON.stringify
. We don't get the chance to use a different serialization model.My use case is that I want to create a
manifest.properties
file instead of amanifest.json
file. I can write my owngenerate
function to create the output as a valid properties file, but thenJSON.stringify
wraps it in quotes and escapes all my newlines.Can we have a
serialize
option that defaults toJSON.stringify
, for those who want their own strategy for this?