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

Function build_eager

lib/utils/index.js:486–493  ·  view source on GitHub ↗
(transformations)

Source from the content-addressed store, hash-verified

484}
485
486function build_eager(transformations) {
487 return toArray(transformations)
488 .map((transformation) => {
489 const transformationString = utils.generate_transformation_string(clone(transformation));
490 const format = transformation.format;
491 return format == null ? transformationString : `${transformationString}/${format}`;
492 }).join('|');
493}
494
495/**
496 * Build the custom headers for the request

Callers

nothing calls this directly

Calls 1

toArrayFunction · 0.85

Tested by

no test coverage detected