dustjs-helper-stringify

0.0.2 • Public • Published

JSON Stringify helper for Dust.js

Give dust.js ability to pretty print JSON with space.

Turn

{"any":"json","that":"hard","to":"read"}

into something like

{
  "any": "json",
  "that": "hard",
  "to": "read"
}

For Node.js

var dust = require('dustjs-linkedin');
require('dustjs-helpers');
require('dustjs-helper-stringify');

Use in Dust template

<pre>
    {@stringify value="{myDate|js|s}" space="2"/}
</pre>

License

MIT license

Package Sidebar

Install

npm i dustjs-helper-stringify

Weekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • hellowin