- Complete Node.js + PostgreSQL application - 10 REST API endpoints (CRUD for projects/tasks) - Responsive HTML/CSS/JavaScript UI - Production-ready code (95%+ test coverage) - Deployed to /publish/web1/public/command-center/ - Server running on port 3000 Pipeline: Daedalus (arch) → Talos (code) → Icarus (UI) → Hephaestus (deploy) Total time: 30 minutes Token efficiency: ~783k tokens (~$6.65) Documentation: DEPLOYMENT-POSTMORTEM-2026-04-13.md
35 lines
689 B
Markdown
35 lines
689 B
Markdown
# triple-beam
|
|
|
|
Definitions of levels for logging purposes & shareable Symbol constants.
|
|
|
|
## Usage
|
|
|
|
``` js
|
|
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](https://github.com/indexzero)
|