osx-quartz
npm install osx-quartz --save
Apple Core Graphics framework provides some useful OS X information through CGSessionCopyCurrentDictionary call.
Example
const quartz = ; console; /*{ kCGSSessionAuditIDKey: '100005', kCGSSessionGroupIDKey: '20', kCGSSessionLoginwindowSafeLogin: '0', kCGSSessionOnConsoleKey: '1', kCGSSessionSystemSafeBoot: '0', kCGSSessionUserIDKey: '503', kCGSSessionUserNameKey: 'john-doe', kCGSessionLoginDoneKey: '1', kCGSessionLongUserNameKey: 'JohnDoe', kSCSecuritySessionID: '100005' }*/ console; // returns boolean