@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
24 lines • 592 B
JavaScript
;
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