0.1.2 • Published 2 years ago

hbs-commandline v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago