{"id":15597102,"url":"https://github.com/alorel/console-log-html","last_synced_at":"2025-08-15T17:07:29.881Z","repository":{"id":57206016,"uuid":"57692250","full_name":"Alorel/console-log-html","owner":"Alorel","description":"Adds console log output to the screen","archived":false,"fork":false,"pushed_at":"2019-03-08T09:05:29.000Z","size":950,"stargazers_count":34,"open_issues_count":0,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-08-05T02:52:21.532Z","etag":null,"topics":["console-log","html","logger"],"latest_commit_sha":null,"homepage":"https://alorel.github.io/console-log-html","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Alorel.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":"2016-05-01T17:32:05.000Z","updated_at":"2024-11-26T00:04:25.000Z","dependencies_parsed_at":"2022-09-18T00:50:48.330Z","dependency_job_id":null,"html_url":"https://github.com/Alorel/console-log-html","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/Alorel/console-log-html","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alorel%2Fconsole-log-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alorel%2Fconsole-log-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alorel%2Fconsole-log-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alorel%2Fconsole-log-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Alorel","download_url":"https://codeload.github.com/Alorel/console-log-html/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Alorel%2Fconsole-log-html/sbom","scorecard":{"id":12197,"data":{"date":"2025-08-11","repo":{"name":"github.com/Alorel/console-log-html","commit":"9997bd3ca4f46a4347d03670e963b8a3308d9df3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":1,"reason":"Found 3/17 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU Lesser General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T14:53:00.970Z","repository_id":57206016,"created_at":"2025-08-14T14:53:00.970Z","updated_at":"2025-08-14T14:53:00.970Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602454,"owners_count":24614260,"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","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["console-log","html","logger"],"created_at":"2024-10-03T01:20:30.368Z","updated_at":"2025-08-15T17:07:29.855Z","avatar_url":"https://github.com/Alorel.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"A tiny library that overrides the browser's `console.*` functions allowing the logged messages to be displayed in HTML.\n\n[![Coverage Status](https://coveralls.io/repos/github/Alorel/console-log-html/badge.svg?branch=master)](https://coveralls.io/github/Alorel/console-log-html?branch=master)\n[![Build Status](https://travis-ci.org/Alorel/console-log-html.svg?branch=master)](https://travis-ci.org/Alorel/console-log-html)\n[![Deps](https://david-dm.org/alorel/console-log-html.svg)](https://david-dm.org/alorel/console-log-html#info=dependencies\u0026view=list)\n[![Deps](https://david-dm.org/alorel/console-log-html/dev-status.svg)](https://david-dm.org/alorel/console-log-html#info=devDependencies\u0026view=list)\n\n[![NPM](https://nodei.co/npm/console-log-html.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://www.npmjs.com/package/console-log-html)\n\nMigrating from `1.x` to `2.0`? See [MIGRATING.md](https://github.com/Alorel/console-log-html/blob/master/MIGRATING.md)\n\n# Installation:\n\nSimply include the file on your page:\n```html\n\u003cscript type=\"application/javascript\" src=\"console-log-html.min.js\"\u003e\u003c/script\u003e\n\u003c!-- Or, alternatively, use the CDN URL --\u003e\n\u003cscript type=\"application/javascript\" src=\"//cdn.rawgit.com/Alorel/console-log-html/master/console-log-html.min.js\"\u003e\u003c/script\u003e\n```\n\nIt can also be included as a dependency from [npm](https://www.npmjs.com/package/console-log-html):\n```\nnpm install console-log-html --save\n```\n```javascript\n(function(){ // Your closure\n    var ConsoleLogHTML = require('console-log-html');\n})();\n```\n\n# Usage:\n\n```html\n    \u003cul id=\"myULContainer\"\u003e\u003c/ul\u003e \u003c!-- I will hold the log messages --\u003e\n    \u003cscript type=\"application/javascript\" src=\"console-log-html.min.js\"\u003e\u003c/script\u003e\n    \u003cscript\u003e\n        ConsoleLogHTML.connect(document.getElementById(\"myULContainer\")); // Redirect log messages\n        ConsoleLogHTML.disconnect(); // Stop redirecting\n    \u003c/script\u003e\n```\n\nYou can also instruct the script to only log to the console by passing a second argument to `console.*()`, e.g.:\n\n```javascript\nconsole.log(\"foo\"); // Logs \"foo\" to HTML\nconsole.log(\"Look, some JSON:\", {foo: 'bar'}); // Logs \"Look, some JSON: Object {\"foo\":\"bar\"}\" to HTML\nconsole.skipHtml.log(\"bar\"); // Logs only to the console\n```\n\n## Customisation\n\n### Default styles\nThe default css classes can be overriden in `ConsoleLogHTML.DEFAULTS`:\n\n```javascript\n    ConsoleLogHTML.DEFAULTS.error = \"some-error-css-class\"; // Will be applied to console.error()\n    ConsoleLogHTML.DEFAULTS.log = \"another-override\"; // Will be applied to console.log()\n```\n\n### During connect()\n\nThe connect method has the following signature:\n```javascript\nfunction connect(target, options, includeTimestamp, logToConsole, appendAtBottom){}\n```\n\n   - `target` has already been covered - it's the \u0026lt;ul\u0026gt; element\n   - `options` allows you to override the css classes in `ConsoleLogHTML.DEFAULTS` for the duration of the `connect`, i.e. it\n   would not save the values. For example, if you wanted to override the `log` and `warn` CSS classes you could pass the object\n\n   ```json\n   {\n        \"warn\": \"my-warn-css-class\",\n        \"log\": \"my-log-css-class\"\n   }\n   ```\n   - `includeTimestamp` - when set to `true` (the default value), a timestamp will be prepended to each message as it\n   appears in the \u0026lt;ul\u0026gt;. The timestamp's format depends on the user as it is created via\n\n   ```javascript\n   (new Date()).toLocaleTimeString()\n   ```\n   - `logToConsole` - when set to `true` (the default value), appear both in the console *and* the \u0026lt;ul\u0026gt;; when set\n   to `false`, they appear only in the \u0026lt;ul\u0026gt;.\n   - `appendAtBottom` - when set to `true` (default=`false`), log messages will be appended at the end of the \u0026lt;ul\u0026gt;-list.\n\n----------\n\nMore information:\n\n   - [Demo](https://alorel.github.io/console-log-html)\n   - [API documentation](https://alorel.github.io/console-log-html/jsdoc)\n   - [Test coverage](https://coveralls.io/github/Alorel/console-log-html?branch=master)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falorel%2Fconsole-log-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falorel%2Fconsole-log-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falorel%2Fconsole-log-html/lists"}