{"id":36499553,"url":"https://github.com/rahul3883/utils","last_synced_at":"2026-01-12T02:18:00.418Z","repository":{"id":143782752,"uuid":"262652758","full_name":"rahul3883/utils","owner":"rahul3883","description":"Node.js development utilities","archived":false,"fork":false,"pushed_at":"2024-12-03T16:06:23.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-30T00:59:48.070Z","etag":null,"topics":["debug","development","json","log","nodejs","npm-package","pretty","print"],"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/rahul3883.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}},"created_at":"2020-05-09T20:24:58.000Z","updated_at":"2024-12-03T16:08:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"ad53b19e-8f0e-4ec3-b182-3066c7044859","html_url":"https://github.com/rahul3883/utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rahul3883/utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul3883%2Futils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul3883%2Futils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul3883%2Futils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul3883%2Futils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rahul3883","download_url":"https://codeload.github.com/rahul3883/utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rahul3883%2Futils/sbom","scorecard":{"id":759021,"data":{"date":"2025-08-11","repo":{"name":"github.com/rahul3883/utils","commit":"5af5e815f532f207c6e109a21a20cd3c98037521"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":"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"}}]},"last_synced_at":"2025-08-22T22:43:17.263Z","repository_id":143782752,"created_at":"2025-08-22T22:43:17.266Z","updated_at":"2025-08-22T22:43:17.266Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28331922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T00:36:25.062Z","status":"online","status_checked_at":"2026-01-12T02:00:08.677Z","response_time":98,"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":["debug","development","json","log","nodejs","npm-package","pretty","print"],"created_at":"2026-01-12T02:17:59.787Z","updated_at":"2026-01-12T02:18:00.410Z","avatar_url":"https://github.com/rahul3883.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js Utilities\n\nNode.js development utilities for printing data to terminal.\n\n## Install\n\n```shell script\nnpm install @rahul1711/utils\n```\n\n## Usage\n\n### Load the package\n```javascript\nconst utils = require('@rahul1711/utils');\n```\n\n### Configure\nConfigure the global options.\n```javascript\nutils.configure([options]);\n```\n- [options (1)](#get-a-line)\n- [options (2)](#get-a-json-string)\n- [options (3)](#get-a-string)\n\n\n### Get a line\nCreate a line using the character provided.\n```javascript\nutils.getLine([options]);\n```\n- `options`: `\u003cArray\u003e` These options override the same options provided in [`utils.configure`](#configure)\n    - `char`: `\u003cchar\u003e` A character to use for printing the line. **Default**: `-`\n    - `len`: `\u003cinteger\u003e` Length of the line. **Default**: `67`\n\n### Print a line\nPrint a line returned from [`utils.getLine`](#get-a-line).\n```javascript\nutils.line([options]);\n```\n- [options](#get-a-line)\n\n### Get a string\nFormat the object using the built in [`util.inspect`](https://nodejs.org/api/util.html#util_util_inspect_object_options) method.\n```javascript\nutils.getString(obj[, option]);\n```\n- [options](https://nodejs.org/api/util.html#util_util_inspect_object_options)\n(override options of the built in `util.inspect` method)\n    \n### Log\nPrint a string returned from [`utils.getString`](#get-a-string).\n```javascript\nutils.log(obj[, options]);\n```\n- [options](#get-a-string)\n\n### Log with lines\nWrap [`utils.log`](#log) with lines.\n\n[`utils.line`](#print-a-line) is used to print the lines.\n```javascript\nutils.logC(obj[, options]);\n```\n- [options (1)](#print-a-line)\n- [options (2)](#get-a-string)\n\n### Get a JSON string\nFormat the object using the built in [`JSON.stringify`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) method.\n```javascript\nutils.getJsonString(obj[, options]);\n```\n- `options`: `\u003cArray\u003e` These options override the same options provided in [`utils.configure`](#configure)\n    - `replacer`: `\u003cfunction\u003e` A map function for object properties. [**Default**](https://github.com/rahul3883/utils/blob/master/index.js#L12)\n    - `indent`: `\u003cinteger\u003e | \u003cstring\u003e` A string or number used to add whitespace in the returned string. **Default**:`4`\n    - `removeQuotes`: `\u003cboolean\u003e` Remove quotes from the keys. **Default**:`true`\n    - `singleLineArray`: `\u003cboolean\u003e` Print an array in a single line. **Default**:`true`\n\n### Log using JSON method\nPrint a string returned from [`utils.getJsonString`](#get-a-json-string).\n```javascript\nutils.json(obj[, options]);\n```\n- [options](#get-a-json-string)\n\n### Log with lines using JSON method\nWrap [`utils.json`](#log-using-json-method) with lines.\n\n[`utils.line`](#print-a-line) is used to print the lines.\n```javascript\nutils.jsonC(obj[, options]);\n```\n- [options (1)](#print-a-line)\n- [options (2)](#get-a-json-string)\n\n## Samples\n\nSample files can be found in [`/samples`](https://github.com/rahul3883/utils/tree/master/samples) directory.\n\n## Notes\n\n- Options passed in [`utils.configure`](#configure) are global, and will be used\nwhenever options are not passed to any methods.\n- Passing options to any method other than [`utils.configure`](#configure) will\nbe valid for that function call only.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul3883%2Futils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul3883%2Futils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul3883%2Futils/lists"}