mirror of https://github.com/cncf/landscapeapp.git
11 lines
351 B
JavaScript
11 lines
351 B
JavaScript
const fs = require('fs');
|
|
const { autoCropSvg } = require('./processSvg');
|
|
async function testFile() {
|
|
process.env.DEBUG_SVG=true;
|
|
var fName = './hosted_logos/kubevirt.svg';
|
|
const svg = fs.readFileSync(fName, 'utf-8');
|
|
const processedSvg = await autoCropSvg(svg);
|
|
require('fs').writeFileSync('/tmp/result.svg', processedSvg);
|
|
}
|
|
testFile();
|