Skip to content

hellowin/dustjs-helper-stringify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published