UNPKG

epoll

Version:

A low-level Node.js binding for the Linux epoll API

17 lines (11 loc) 291 B
'use strict'; module.exports = (_ => { const osType = require('os').type(); if (osType === 'Linux') { return require('bindings')('epoll.node'); } console.warn(`Warning: epoll is built for Linux and not intended for usage on ${osType}.`); return { Epoll: {} }; })();