{"id":17014461,"url":"https://github.com/maradotwebp/outputjs","last_synced_at":"2026-05-10T19:38:14.327Z","repository":{"id":57316958,"uuid":"99934657","full_name":"maradotwebp/outputjs","owner":"maradotwebp","description":":pencil: A simplistic node.js logger.","archived":false,"fork":false,"pushed_at":"2019-06-08T13:08:06.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T10:57:42.355Z","etag":null,"topics":["logger","logging","nodejs","nodejs-modules","output"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maradotwebp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-10T14:54:46.000Z","updated_at":"2019-06-08T13:08:10.000Z","dependencies_parsed_at":"2022-09-18T20:52:02.306Z","dependency_job_id":null,"html_url":"https://github.com/maradotwebp/outputjs","commit_stats":null,"previous_names":["maradotwebp/outputjs","froehlicha/outputjs"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maradotwebp%2Foutputjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maradotwebp%2Foutputjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maradotwebp%2Foutputjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maradotwebp%2Foutputjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maradotwebp","download_url":"https://codeload.github.com/maradotwebp/outputjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207719,"owners_count":20416106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logger","logging","nodejs","nodejs-modules","output"],"created_at":"2024-10-14T06:25:01.348Z","updated_at":"2026-05-10T19:38:09.270Z","avatar_url":"https://github.com/maradotwebp.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# outputjs\n\n[![npm version](https://badge.fury.io/js/outputjs.svg)](https://badge.fury.io/js/outputjs)\n![Dependencies](https://david-dm.org/froehlichA/outputjs.svg)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/froehlichA/outputjs/master/LICENSE)\n[![Greenkeeper badge](https://badges.greenkeeper.io/froehlichA/outputjs.svg)](https://greenkeeper.io/)\n[![Build Status](https://travis-ci.org/froehlichA/outputjs.svg?branch=master)](https://travis-ci.org/froehlichA/outputjs)\n[![codecov](https://codecov.io/gh/froehlichA/outputjs/branch/master/graph/badge.svg)](https://codecov.io/gh/froehlichA/outputjs)\n\n:pencil: A simplistic node.js logger that can be configured to the max.\n\n![Example output](example.png)\n\n* No configuration necessary!\n* Name \u0026 Color support!\n* Automatic padding!\n* Info, Success, Error, and warn functions!\n* A debug function that can be toggled!\n* Automatic name \u0026 color selection!\n## Usage\nYou can choose to either pass options as an argument...\n```javascript\nconst logger = require('outputjs');\nconst chalk = require('chalk');\nconst options = {\n    name: 'server',       //Name of the logger. Will be displayed in [] tags. DEFAULT: Name of caller file\n    color: chalk.bgGreen, //Color used for highlighting the name. DEFAULT: random unique color\n    padding: 10,          //Padding with x width for the name. DEFAULT: 10\n    prefix: '--\u003e',        //Prefix used after the name. DEFAULT: \"-\u003e\"\n    debug: true,          //Enables output with .debug() DEFAULT: false\n    debugPrefix: 'D: ',   //Prefix used for debugging. DEFAULT: \"DEBUG:\"\n    filePath: 'output.js' //Outputs everything to a file. Doesn't support colors. DEFAULT: false\n}\nconst server = new logger(options);\n```\n...or simple go with no configuration at all.\n```javascript\nconst logger = require('outputjs');\nconst server = new logger();\n```\n\nThe following functions are available to you:\n```javascript\nserver.debug(\"A debug message! Without debug set to true, it won't display. Highlighted in bright yellow.\");\nserver.info(\"A info message! Highlighted in white.\");\nserver.success(\"A success message! Highlighted in green.\");\nserver.warn(\"A warn message! Highlighted in yellow.\");\nserver.error(\"A error message! Highlighted in red.\");\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaradotwebp%2Foutputjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaradotwebp%2Foutputjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaradotwebp%2Foutputjs/lists"}