UNPKG

@joshfarrant/shortcuts-js

Version:
26 lines 752 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action Make Archive * @section Content Types > Documents > Archives * @icon Documents * * Makes an archive out of the files passed as input. Supports creating zip, tar.gz, tar.bz2, tar, gzip, cpio, or iso archives. * * ```js * makeArchive({ * format: '.zip', * name: 'zipName', * }); * ``` */ const makeArchive = ({ format = 'zip', name = '', }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.makezip', WFWorkflowActionParameters: { WFArchiveFormat: format, WFZIPName: name, }, }); exports.default = utils_1.withActionOutput(makeArchive); //# sourceMappingURL=makeArchive.js.map