@bouncingpixel/dust-helpers

A collection of Dust helpers broken out by purpose

Usage no npm install needed!

<script type="module">
  import bouncingpixelDustHelpers from 'https://cdn.skypack.dev/@bouncingpixel/dust-helpers';
</script>

README

dust-helpers

Various dust helpers grouped by purpose

Working With

Requirements

  • NodeJS 6 LTS
  • DustJS from Linkedin 2.7.5+

Using dust-helpers

Require in the desired helper(s) and initialize them with the dust instance.

const dust = require('dustjs-linkedin');

const dateHelpers = require('@bouncingpixel/dust-helpers/date-helpers');
const stringHelpers = require('@bouncingpixel/dust-helpers/string-helpers');

dateHelpers(dust);
stringHelpers(dust);