UNPKG

@joshfarrant/shortcuts-js

Version:
24 lines 592 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Generate Hash * @section Actions > Scripting > Files * @icon Scripting * * Generates a MD5/SHA1 hash from the input. * * ```js * generateHash({ * type: 'MD5', * }); * ``` */ const generateHash = ({ type = 'MD5', }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.hash', WFWorkflowActionParameters: { WFHashType: type, }, }); exports.default = utils_1.withActionOutput(generateHash); //# sourceMappingURL=generateHash.js.map