15270821319 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
..
.nyc_output 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
config 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
CHANGELOG.md 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
LICENSE 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
README.md 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
index.js 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây
package.json 4e5c5d37f9 初步设计数据库,注册登录 10 tháng trước cách đây

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