{"id":23137736,"url":"https://github.com/njakob/cli-utils","last_synced_at":"2026-04-12T02:34:06.493Z","repository":{"id":57131316,"uuid":"88361898","full_name":"njakob/cli-utils","owner":"njakob","description":"Collection of utils to build CLI Node based applications","archived":false,"fork":false,"pushed_at":"2017-05-20T14:40:32.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T16:05:19.875Z","etag":null,"topics":["application","cli","color","javascript","logging","nodejs","reporter","terminal"],"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/njakob.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2017-04-15T17:08:22.000Z","updated_at":"2023-02-14T02:23:32.000Z","dependencies_parsed_at":"2022-09-01T00:10:54.647Z","dependency_job_id":null,"html_url":"https://github.com/njakob/cli-utils","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njakob%2Fcli-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njakob%2Fcli-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njakob%2Fcli-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/njakob%2Fcli-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/njakob","download_url":"https://codeload.github.com/njakob/cli-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247157087,"owners_count":20893203,"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":["application","cli","color","javascript","logging","nodejs","reporter","terminal"],"created_at":"2024-12-17T13:08:48.524Z","updated_at":"2026-04-12T02:34:01.460Z","avatar_url":"https://github.com/njakob.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# cli-utils [![NPM version][badge:npm-status]][npm:@njakob/cli-utils] [![Build Status][badge:build-status]][travis] [![ESLint Config][badge:eslint-config]][github:njakob/eslint-config] [![Conventional Commits][badge:conventional-commits]][conventional-commits]\n\n\u003e Collection of utils to build CLI Node based applications.\n\n## Features\n\n- Console reporter\n\n## Installation\n\nWith NPM:\n\n```\n$ npm install @njakob/cli-utils\n```\n\nWith Yarn:\n\n```\n$ yarn add @njakob/cli-utils\n```\n\n## Usage\n\n### Console Reporter\n\n```js\nimport { ConsoleReporter } from '@njakob/cli-utils';\n\nconst reporter = new ConsoleReporter();\n\nreporter.log(reporter.parse`Something to ${reporter.styles.red`log`}`, 2);\nreporter.error(reporter.parse`${reporter.styles.red`Error`}: Something went wrong`);\nreporter.success(reporter.parse`Something was a success`);\nreporter.warning(reporter.parse`Something went not too good`);\nreporter.failure(reporter.parse`Something went totally wrong`);\n```\n\n## Related Projects\n\n- [`rainbow`][github:njakob/rainbow]: String styling helpers inspired by Chalk.\n\n## Inspired by\n\n- `ConsoleReporter` system used in [`yarn`][github:yarnpkg/yarn]\n\n## Changelog\n\nSee [changelog][CHANGELOG].\n\n## Licences\n\n`njakob/cli-utils` is licensed under the [MIT License][licence].\n\n[changelog]: CHANGELOG.md\n[licence]: LICENSE\n[github:njakob/rainbow]: https://github.com/njakob/rainbow\n[github:njakob/eslint-config]: https://github.com/njakob/eslint-config\n[github:yarnpkg/yarn]: https://github.com/yarnpkg/yarn\n[npm:@njakob/cli-utils]: https://nodei.co/npm/@njakob/cli-utils\n[travis]: https://travis-ci.org/njakob/cli-utils\n[conventional-commits]: https://conventionalcommits.org\n[badge:npm-status]: https://img.shields.io/npm/v/@njakob/cli-utils.svg\n[badge:build-status]: https://travis-ci.org/njakob/cli-utils.svg?branch=master\n[badge:eslint-config]: https://img.shields.io/badge/eslint_config-njakob-463fd4.svg\n[badge:conventional-commits]: https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjakob%2Fcli-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnjakob%2Fcli-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnjakob%2Fcli-utils/lists"}