![]() | Name | Last modified | Size | Description |
---|---|---|---|---|
![]() | Parent Directory | - | ||
![]() | config/ | 2 years ago | - | |
![]() | CHANGELOG.md | 40 years ago | 374 | |
![]() | LICENSE | 40 years ago | 1.0K | |
![]() | README.md | 40 years ago | 689 | d7c1522 post receive test [كارل مبارك] |
![]() | index.js | 40 years ago | 1.0K | |
![]() | package.json | 2 years ago | 1.7K | |
![]() | test.js | 40 years ago | 2.5K |
Definitions of levels for logging purposes & shareable Symbol constants.
const { LEVEL } = require('triple-beam');
const colors = require('colors/safe');
const info = {
[LEVEL]: 'error',
level: 'error',
message: 'hey a logging message!'
};
// Colorize your log level!
info.level = colors.green(info.level);
// And still have an unmutated copy of your level!
console.log(info.level === 'error'); // false
console.log(info[LEVEL] === 'error'); // true
Tests are written with mocha
, assume
, and nyc
. They can be run with npm
:
npm test