Enforces rules in Gabe's discord server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
Geometer1729 7e6807c787
make count more interesting
3 years ago
..
config Add thicc node modules 3 years ago
.eslintrc Add thicc node modules 3 years ago
.gitattributes Add thicc node modules 3 years ago
.travis.yml Add thicc node modules 3 years ago
CHANGELOG.md Add thicc node modules 3 years ago
LICENSE Add thicc node modules 3 years ago
README.md Add thicc node modules 3 years ago
index.js Add thicc node modules 3 years ago
package.json Add thicc node modules 3 years ago
test.js Add thicc node modules 3 years ago

README.md

triple-beam

Definitions of levels for logging purposes & shareable Symbol constants.

Usage

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

Tests are written with mocha, assume, and nyc. They can be run with npm:

npm test
LICENSE: MIT
AUTHOR: Charlie Robbins