{"id":16421365,"url":"https://github.com/leomp12/console-files","last_synced_at":"2026-06-29T02:31:02.674Z","repository":{"id":33272207,"uuid":"156934141","full_name":"leomp12/console-files","owner":"leomp12","description":"Simple package to handle console output to files","archived":false,"fork":false,"pushed_at":"2026-03-21T17:53:35.000Z","size":284,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-05-31T10:25:58.851Z","etag":null,"topics":["error-log","javascript-console","js-logger","log-files","node-debug","nodejs-console"],"latest_commit_sha":null,"homepage":"","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/leomp12.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-11-10T00:52:03.000Z","updated_at":"2026-03-03T02:37:36.000Z","dependencies_parsed_at":"2024-11-10T09:40:40.594Z","dependency_job_id":"ba97ec84-e5fa-4f87-8eee-087f6b420b6d","html_url":"https://github.com/leomp12/console-files","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":"0.23809523809523814","last_synced_commit":"632eec3f8831bd1253a9849c5f68eaee9cb90375"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leomp12/console-files","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leomp12%2Fconsole-files","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leomp12%2Fconsole-files/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leomp12%2Fconsole-files/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leomp12%2Fconsole-files/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leomp12","download_url":"https://codeload.github.com/leomp12/console-files/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leomp12%2Fconsole-files/sbom","scorecard":{"id":584771,"data":{"date":"2025-08-11","repo":{"name":"github.com/leomp12/console-files","commit":"dc8c9494b4e2df0dc40cd740bc414fe8146b217a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.2,"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":"Code-Review","score":0,"reason":"Found 0/16 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":"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":"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":"Maintained","score":1,"reason":"2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: 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":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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 12 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"}},{"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"}}]},"last_synced_at":"2025-08-20T20:09:22.897Z","repository_id":33272207,"created_at":"2025-08-20T20:09:22.897Z","updated_at":"2025-08-20T20:09:22.897Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34911134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"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":["error-log","javascript-console","js-logger","log-files","node-debug","nodejs-console"],"created_at":"2024-10-11T07:32:23.550Z","updated_at":"2026-06-29T02:31:02.649Z","avatar_url":"https://github.com/leomp12.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# console-files\n\nSimple Node.js package to write application outputs to files.\n\nIt works as a default JavaScript\n[`Console`](https://developer.mozilla.org/en-US/docs/Web/API/Console) object,\nbut with special handlers for `.log` and `.error` methods,\nsaving output to configured files.\n\nIt also treats application fatal errors\n(`uncaughtException`), appending error message to file\nbefore exiting process.\n\n## Using\n\n```bash\nnpm i --save console-files\n```\n\n```js\nconst logger = require('console-files')\n\n/*\nDo the stuff\n*/\n\nlogger.log('Hello console-files!')\n\n/*\nMore work to do\n*/\n\nlogger.error(new Error('Keep calm, it is just a test ;)'))\n```\n\n## Configuration\n\nIt's configurable through the following\nenvironment variables:\n\nEnvironment variable  | Method   | Default\n---                   | ---      | ---\n`LOGGER_OUTPUT`       | `.log`   | `./logger.out`\n`LOGGER_ERRORS`       | `.error` | `./logger.err`\n`LOGGER_FATAL_ERRORS` | -        | `./_stderr`\n`LOGGER_SKIP_FATAL`   | -        | -\n\n## Development and production\n\n`console-files` checks the `NODE_ENV`\nto work differently for production and development modes:\n\n```js\nconst devMode = process.env.NODE_ENV !== 'production'\n```\n\n- On dev mode it'll output to default console,\nunless the `LOGGER_OUTPUT` or `LOGGER_FATAL_ERRORS`\nenv variable is explicitly set;\n\n- On production mode it'll output only to files;\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleomp12%2Fconsole-files","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleomp12%2Fconsole-files","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleomp12%2Fconsole-files/lists"}