@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
20 lines • 703 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Get Dictionary from Input
* @section Actions > Scripting > Dictionaries
* @icon Scripting
*
* Makes a dictionary from the text passed as input. JSON (like {"foo": "bar"}), key-value pairs (like foo=bar&baz=biz), and XML-based plist are supported.
*
* ```js
* getDictionaryFromInput();
* ```
*/
const getDictionaryFromInput = () => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.detect.dictionary',
WFWorkflowActionParameters: {},
});
exports.default = utils_1.withActionOutput(getDictionaryFromInput);
//# sourceMappingURL=getDictionaryFromInput.js.map