{"id":13816789,"url":"https://github.com/TopCli/Pretty-JSON","last_synced_at":"2025-05-15T18:32:32.519Z","repository":{"id":48446183,"uuid":"184321845","full_name":"TopCli/Pretty-JSON","owner":"TopCli","description":"Stdout JSON in your terminal","archived":false,"fork":false,"pushed_at":"2024-02-01T06:15:39.000Z","size":58,"stargazers_count":1,"open_issues_count":5,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-14T07:07:25.703Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TopCli.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-30T19:45:28.000Z","updated_at":"2024-07-17T02:45:01.310Z","dependencies_parsed_at":"2023-02-09T06:02:04.521Z","dependency_job_id":"9b20e086-965c-41a8-992b-8ef4e2bf8239","html_url":"https://github.com/TopCli/Pretty-JSON","commit_stats":null,"previous_names":["slimio/pretty-json"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopCli%2FPretty-JSON","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopCli%2FPretty-JSON/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopCli%2FPretty-JSON/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TopCli%2FPretty-JSON/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TopCli","download_url":"https://codeload.github.com/TopCli/Pretty-JSON/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225368842,"owners_count":17463462,"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":[],"created_at":"2024-08-04T06:00:21.409Z","updated_at":"2024-11-19T14:31:11.826Z","avatar_url":"https://github.com/TopCli.png","language":"JavaScript","readme":"# pretty-json\n![version](https://img.shields.io/badge/dynamic/json.svg?style=for-the-badge\u0026url=https://raw.githubusercontent.com/TopCli/Pretty-JSON/master/package.json\u0026query=$.version\u0026label=Version)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg?style=for-the-badge)](https://github.com/TopCli/Pretty-JSON/commit-activity)\n[![mit](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](https://github.com/TopCli/Pretty-JSON/blob/master/LICENSE)\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/TopCli/Pretty-JSON/badge?style=for-the-badge)](https://api.securityscorecards.dev/projects/github.com/TopCli/Pretty-JSON)\n![build](https://img.shields.io/github/actions/workflow/status/TopCli/Pretty-JSON/node.js.yml?style=for-the-badge)\n\nStdout JSON in your terminal with colors. This package has been created to stdout clean and beautiful JSON in the  SlimIO CLI.\n\n## Requirements\n- [Node.js](https://nodejs.org/en/) v16 or higher\n\n## Getting Started\n\nThis package is available in the Node Package Repository and can be easily installed with [npm](https://docs.npmjs.com/getting-started/what-is-npm) or [yarn](https://yarnpkg.com).\n\n```bash\n$ npm i @topcli/pretty-json\n# or\n$ yarn add @topcli/pretty-json\n```\n\n## Usage example\n```js\nimport prettyJSON from \"@topcli/pretty-json\";\n\nprettyJSON({\n    foo: \"bar\",\n    hello: \"world!\",\n    arr: [1, 2, 3]\n});\n```\n\nIt will produce the following stdout:\n\n![stdout](https://i.imgur.com/R3fUoQH.png)\n\n## API\n\n### prettyJSON(obj: object): void\nStdout a given JSON Object (Plain Object, Objects Prototype of Object or Array).\n\n## Dependencies\n\n|Name|Refactoring|Security Risk|Usage|\n|---|---|---|---|\n|[@slimio/is](https://github.com/SlimIO/is)|Minor|Low|Type checker|\n|[kleur](https://github.com/lukeed/kleur)|Minor|Low|TTY color|\n\n## License\nMIT\n","funding_links":[],"categories":["Packages"],"sub_categories":["CLI (TTY etc..)"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTopCli%2FPretty-JSON","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTopCli%2FPretty-JSON","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTopCli%2FPretty-JSON/lists"}