How to use the kleur.bgMagenta function in kleur

To help you get started, we’ve selected a few kleur examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github moleculerjs / moleculer / src / middlewares / hot-reload.js View on Github external
const loadServices = _.debounce(() => {
			broker.logger.info(kleur.bgMagenta().white().bold(`Load ${needToLoad.size} service(s)...`));

			needToLoad.forEach(filename => {
				try {
					broker.loadService(filename);
				} catch(err) {
					broker.logger.error(`Failed to load service '${filename}'`, err);
					clearRequireCache(filename);
				}
			});
			needToLoad.clear();

		}, 500);