{"id":16641204,"url":"https://github.com/cmstead/jslogger","last_synced_at":"2025-09-15T09:15:00.818Z","repository":{"id":24908908,"uuid":"28325628","full_name":"cmstead/jslogger","owner":"cmstead","description":"Javascript console abstraction - Keeps logging to a minimum in a production environment","archived":false,"fork":false,"pushed_at":"2015-03-30T20:28:05.000Z","size":221,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-16T05:24:06.677Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cmstead.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-22T05:23:20.000Z","updated_at":"2016-01-26T23:36:09.000Z","dependencies_parsed_at":"2022-08-06T05:15:29.465Z","dependency_job_id":null,"html_url":"https://github.com/cmstead/jslogger","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/cmstead/jslogger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjslogger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjslogger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjslogger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjslogger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmstead","download_url":"https://codeload.github.com/cmstead/jslogger/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmstead%2Fjslogger/sbom","scorecard":{"id":294401,"data":{"date":"2025-08-11","repo":{"name":"github.com/cmstead/jslogger","commit":"9073784f1a99c30044cdd833d312643b61f45889"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"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":"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":"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":"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":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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":"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"}}]},"last_synced_at":"2025-08-17T19:07:14.655Z","repository_id":24908908,"created_at":"2025-08-17T19:07:14.655Z","updated_at":"2025-08-17T19:07:14.655Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275233754,"owners_count":25428456,"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-09-15T02:00:09.272Z","response_time":75,"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":[],"created_at":"2024-10-12T07:45:48.829Z","updated_at":"2025-09-15T09:15:00.758Z","avatar_url":"https://github.com/cmstead.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSLogger\n========\n\nJavascript console abstraction - Keeps logging to a minimum in a production environment\n\n##Usage\n\nCurrently jslogger is intended for web applications only.\n\n*Include in html doc*\n\n    \u003cscript src=\"path/to/libraries/jslogger.js\"\u003e\u003c/script\u003e\n\n*In code*\n\n    jslogger.log('I\\'m going to become log output');\n    jslogger.log('%cI am output with style', 'color: #cccccc');\n    jslogger.debug('I am a debug message. I will not cause a deprecation warning');\n    //And so on\n\n*In console*\n\n    jslogger.setLogLevel(3); //This will output everything up to debug level\n    jslogger.setLogLevel(0); //This will output only errors\n    jslogger.getLogLevel(); //Outputs log level, currently 0\n\n*Supported log levels*\n\nEach log level outputs everything from a lower log level and also includes listed functions.\n\n- 0: Error\n- 1: Warn\n- 2: Info and log\n- 3: Debug\n- 4: Trace\n\n##Roadmap\n\n*V2.0 -- Anticipated breaking changes and API updates*\n\n- Create default grouped logging including no logging (jslogger.SILENT, jslogger.ERROR, jslogger.WARN, jslogger.LOG, jslogger.DEBUG)\n- Create individual additive log levels for each logging state\n- Numeric log levels will be removed\n- Selective logging will be manageable by a comma-separated string (eg. 'info, log, error, dir')\n- Logging interceptors will be added so persisted logs can be implemented\n\n*V1.x -- Upcoming work*\n\n*Upcoming functions*\n- assert()\n- count()\n- dir()\n- group([\u003cboolean\u003e collapsed, ], \u003carray\u003e[jslogger function, arguments])\n- table()\n- timerStart() -\u003e time()\n- timerEnd() -\u003e timeEnd()\n\n*Other functionality*\n- Provide a configuration abstraction to allow for logging in node applications\n\n##Update log\n\n###v1.2.0\n\n- Added debug function which performs the following mapping at log level 3: debug -\u003e console.log\n- Moved trace output to log level 4\n- Refactored code to eliminate unnecessarily repeated function behaviors\n- Pulled multi-parameter logging validation out of consoleCaller\n- Re-organized code for easier identification of critical moving parts\n- Added function mapping to allow for extended function naming and defintions without requiring complex logic\n- Adopted some principles of 'BOT' architecture model to simplify program logic and express expectations in a more declarative way\n\n###v1.1.1\n\n- Fixed log level check. Regex was failing in a production environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fjslogger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmstead%2Fjslogger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmstead%2Fjslogger/lists"}