hbs-commandline
v0.1.2
Published
Invoke handlebars from the commandline. Specifically, using to convert [ZAP](https://www.zaproxy.org/) reports to xml and show into Azure Devops Test Results
Downloads
93
Readme
hbs-commandline
Invoke handlebars from the commandline. Specifically, using to convert ZAP reports to xml and show into Azure Devops Test Results
Installation
$ npm install -g hbs-commandline
Usage
Usage:
hbs-commandline data.json ./helpers.js < template.hbs > output.xml
data.json Parse data
helpers.js Custom helpers (fullpath)
template.hbs Your template
output.xml Output rendered templates
Include helpers
// helpers.js
var helpers = function () {};
helpers.register = function (Handlebars) {
Handlebars.registerHelper('convertRiskCode', function(value) {
return value !== "0" ? "Failed" : "Not Impacted";
});
};
module.exports = helpers;
Use case
https://github.com/NhatDuy1407/azure-pipelines-zap-scanner
License
MIT