UNPKG

@joshfarrant/shortcuts-js

Version:
24 lines 706 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const utils_1 = require("../utils"); /** * @action URL Encode * @section Actions > Scripting > X-Callback * @icon URL * * Encodes or decodes text passed into the action to be suitable for inclusion in a URL by adding or removing percent escapes when appropriate. * * ```js * URLEncode({ * encodeMode: 'Encode', * }); * ``` */ const URLEncode = ({ encodeMode = 'Encode', }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.urlencode', WFWorkflowActionParameters: { WFEncodeMode: encodeMode, }, }); exports.default = utils_1.withActionOutput(URLEncode); //# sourceMappingURL=URLEncode.js.map