@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
25 lines • 652 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @action Change Case
* @section Content Types > Text > Change Case
* @icon Text
*
* Changes the case of the text passed into the action to UPPERCASE, lowercase or Title Case.
*
* ```js
* changeCase({});
* ```
*/
const changeCase = ({ caseType, }) => {
const parameters = caseType ?
{
WFCaseType: caseType,
} : {};
return {
WFWorkflowActionIdentifier: 'is.workflow.actions.text.changecase',
WFWorkflowActionParameters: parameters,
};
};
exports.default = changeCase;
//# sourceMappingURL=changeCase.js.map