MCPcopy Create free account
hub / github.com/343dev/optimizt / processSvg

Function processSvg

optimize.js:217–224  ·  view source on GitHub ↗
({ fileBuffer, config })

Source from the content-addressed store, hash-verified

215}
216
217function processSvg({ fileBuffer, config }) {
218 return Buffer.from(
219 svgoOptimize(
220 fileBuffer,
221 config.svg,
222 ).data,
223 );
224}
225
226function pipe({ command, commandOptions, inputBuffer }) {
227 return new Promise((resolve, reject) => {

Callers 1

processFileByFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected