Package Exports
- colorful-logger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (colorful-logger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
by: saitodisse
#colorful-logger colorful console.log
###bower
bower install colorful-logger --save
###npm
npm install colorful-logger --save
###configure on AMD
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
ColorfulLogger: {
deps: ['lodash']
}
},
paths: {
lodash: '../bower_components/lodash/dist/lodash',
ColorfulLogger: '../bower_components/colorful-logger/src/colorful-logger'
}
});
####call
define([
'ColorfulLogger'
], function (ColorfulLogger) {
var logger = new ColorfulLogger.Logger();
// a simple usage, not fun
logger.log('Welcome to Meld Trace Logger');
// here it is a green colored message
logger.log({
message: 'this message must be green',
css: 'color: #0A0'
});
});
##tests ###install buster
sudo npm i buster -g
###run buster-test
buster-test