New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

require-dust

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require-dust

RequireJs port for dust.js, for loading AMD modules. Includes RequireJS optimizer

  • 0.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

RequireJs plugin for Dust.js

Motivation

Tried dustjs-requirejs-plugin but could not get it to work with requirejs v2, also didn't like the fact that it puts the entire dust.js source code as part of the plugin. This plugin takes the advantage of AMD and loads dust.js as a module.

Features

  • works the same way as require-cs
  • pre-compile as part of requirejs optimization
  • exclude plugin logic once optimized (using requirejs "stubModules" feature in v2.0.0+)

Demo

Demo uses a modified version of Linkedin version of dust.js, but it should work with the akdubya version as well. Search in demo/dust-bull-0.6.0.js for "RDUST MOD" to see the modification.

cd demo
sh build.sh
node tools/app.js
// then open http://localhost:3000/demo (the AMD mode) and
// http://localhost:3000/demo-build (the optimized mode) to see the it in action

License

WTFPL

FAQs

Package last updated on 21 Jun 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc