You could build your crc32
file in the "node.js" way and use browserify to use it in your site. There are also other ways to make your crc32
object available on both node and the browser. Then you can require
it in your helper file...
src/js/functions.js
(function(exports) {
exports.crc32 = function (str, crc) { ... };
})(window || module.exports);
helpers.js
var crc32 = require('./src/js/functions').crc32;
Handlebars.registerHelper('checksum', function (value) {
return crc32(value);
});