Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(async () => {
const icon = await fileIcon.buffer(cli.input[0], {
size: cli.flags.size,
destination
});
if (process.stdout.isTTY || process.env.__FILE_ICON_SHOULD_NOT_PIPE__) {
console.log(destination);
} else {
process.stdout.write(icon);
}
})();
const getAppIcon = async () => {
const buffer = await fileIcon.buffer(process.pid);
return buffer.toString('base64');
};