@joshfarrant/shortcuts-js
Version:
An iOS 12 Shortcuts creator
25 lines • 654 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
/**
* @action Count
* @section Actions > Scripting > Content
* @icon Calculator
*
* Counts the number of items, characters, words, sentences, or lines passed as input.
*
* ```js
* count({
* // Count the number of lines in the input
* type: 'Lines',
* });
* ```
*/
const count = ({ type = 'Items', }) => ({
WFWorkflowActionIdentifier: 'is.workflow.actions.count',
WFWorkflowActionParameters: {
WFCountType: type,
},
});
exports.default = utils_1.withActionOutput(count);
//# sourceMappingURL=count.js.map