node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป



compiles dust.js templates


For use in other node projects:

npm install dustbuster

As a command line tool:

npm install dustbuster -g


in a node project (designed to be used synchronously):

var dustbuster = require('dustbuster');
  input: <input>,
  basename: <basename>,
  output: <output>,
  helper: <boolean>

command line:

dustbuster <input> [-b <basename>, -o <output>]
  • <input> can be a path to a single file or a directory containing dust.js templates (*.dust). As of version 0.0.6 <input> can also be an array of file paths
  • <basename> when dustbusting directories, replaces the directory name as the basename for the registered template. For single files, <basename> is prepended to the filename.
  • <output> file to write output to. If not specified returns the string of compiled dust templates
  • <helper> optional boolean to set if templates are making use of linkedin helpers library