UNPKG

@joshfarrant/shortcuts-js

Version:
25 lines 654 B
"use strict"; 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