🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

dusting

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dusting

cli and node module to compile dust.js templates

1.0.0
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

dusting

Recursively compiles a directory of dust.js templates into grouped .js files.

Dust templates in the root directory are compiled into a templates.js file. Templates in sub directories of the root are compiled into a file matching the full directory name (with dots replacing path separator). So all templates at sub/dir/*.dust would be compiled into sub.dir.js file.

installation

For use in other node projects:

npm install dusting

As a command line tool:

npm install dusting -g

usage

designed to be used synchronously:

var dusting = require('dusting');
dusting({
  source: <input>,
  output: <output>,
  // optionally rename the root `templates.js` file
  rootOutput: 'foo.js'
});

command line:

dusting <input> [output]
  • <source> path to a directory containing dust.js templates (*.dust).
  • [output] directory to write output to, defaults to cwd

Keywords

dust

FAQs

Package last updated on 08 Oct 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts