UNPKG

serverless-offline-msk

Version:

A serverless offline plugin that enables AWS MSK events

27 lines (25 loc) 476 B
"use strict"; module.exports = function (stat) { if (stat.isFile()) { return "file"; } if (stat.isDirectory()) { return "directory"; } if (stat.isSymbolicLink && stat.isSymbolicLink()) { return "symbolicLink"; } if (stat.isSocket()) { return "socket"; } if (stat.isBlockDevice()) { return "blockDevice"; } if (stat.isCharacterDevice()) { return "characterDevice"; } if (stat.isFIFO()) { return "FIFO"; } throw new Error("Cannot detect type"); };