UNPKG

extract-file-icon

Version:
13 lines 373 B
"use strict"; const os_1 = require("os"); let getIcon; if (os_1.platform() === "win32" || os_1.platform() === 'darwin') { getIcon = require("../build/Release/addon.node").getIcon; } const getFileIcon = (path, size = 64) => { if (!getIcon) return; return getIcon(path, size); }; module.exports = getFileIcon; //# sourceMappingURL=index.js.map