UNPKG

@jellybrick/mpris-service

Version:

Node.js implementation for the MPRIS D-Bus Interface Specification to create a mediaplayer service

15 lines (13 loc) 366 B
"use strict"; const loggingEnabled = process.env.MPRIS_SERVICE_DEBUG !== undefined && process.env.MPRIS_SERVICE_DEBUG !== '0'; module.exports.debug = function (message) { if (loggingEnabled) { console.log(message); } }; module.exports.warn = function (message) { if (loggingEnabled) { console.warn(message); } }; //# sourceMappingURL=logging.js.map