MCPcopy Create free account
hub / github.com/cloudinary/cloudinary_npm / process_custom_pre_function

Function process_custom_pre_function

lib/utils/index.js:188–191  ·  view source on GitHub ↗

* Parse custom_pre_function options * @private * @param {object|*} customPreFunction a custom function object containing function_type and source values * @return {string|*} custom_pre_function transformation string

(customPreFunction)

Source from the content-addressed store, hash-verified

186 * @return {string|*} custom_pre_function transformation string
187 */
188function process_custom_pre_function(customPreFunction) {
189 let result = process_custom_function(customPreFunction);
190 return utils.isString(result) ? `pre:${result}` : null;
191}
192
193/**
194 * Parse "if" parameter

Callers 1

Calls 1

process_custom_functionFunction · 0.85

Tested by

no test coverage detected