Thestringreturnedfromthispackage'ssingleexportfunctionisliteralJavaScriptwhichcanbesavedtoa`.js` file, or be embedded into an HTML document by making the content of a `<script>`element.
>Youcanpassanoptional`unsafe` argument to `serialize()`forstraightserialization.
###Options
The`serialize()` function accepts an `options` object as its second argument. All options are being defaulted to `undefined`:
####`options.space`
Thisoptionisthesameasthe`space` argument that can be passed to [`JSON.stringify`][JSON.stringify].Itcanbeusedtoaddwhitespaceandindentationtotheserializedoutputtomakeitmorereadable.
Thisoptionistosignal`serialize()` that we want to do a straight conversion, without the XSS protection. This options needs to be explicitly set to `true`.HTMLcharactersandJavaScriptlineterminatorswillnotbeescaped.Youwillhavetorollyourown.