{"id":19197892,"url":"https://github.com/flarebyte/solace","last_synced_at":"2025-04-10T09:11:13.097Z","repository":{"id":57365763,"uuid":"48137755","full_name":"flarebyte/solace","owner":"flarebyte","description":"Alternative to console log which automatically beautifies the output","archived":false,"fork":false,"pushed_at":"2017-11-16T13:10:51.000Z","size":134,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-21T17:09:26.409Z","etag":null,"topics":["npm-package"],"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/flarebyte.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}},"created_at":"2015-12-16T22:03:35.000Z","updated_at":"2023-05-13T07:07:48.000Z","dependencies_parsed_at":"2022-08-23T20:10:17.626Z","dependency_job_id":null,"html_url":"https://github.com/flarebyte/solace","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fsolace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fsolace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fsolace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flarebyte%2Fsolace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flarebyte","download_url":"https://codeload.github.com/flarebyte/solace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248190500,"owners_count":21062284,"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":["npm-package"],"created_at":"2024-11-09T12:19:12.254Z","updated_at":"2025-04-10T09:11:13.076Z","avatar_url":"https://github.com/flarebyte.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# solace [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] [![Coverage percentage][coveralls-image]][coveralls-url]\n\u003e Alternative to the console log which automatically beautifies the output\n\nSolace is particularly useful if you intend:\n* to debug some data.\n* to display some data for a CLI.\n\nSolace has a specific support for string, boolean, number, date, regex, null, void, error, NaN, object, array and will deal with these types in a pleasant way.\n\nBy default, the output is expected to be stdout/stderr, but you can override this to implement more advanced logging.\n\nThe theme (machine, beautiful, outline) can be changed at runtime, which can be a handy option for the user of a CLI.\n\n## Installation\n\n```sh\n$ npm install --save solace\n```\n\n## Usage\n\n```js\nimport solaceCreator from 'solace';\n\nconst solace = solaceCreator({\n  //standardOut: process.stdout,\n  //standardErr: process.stderr,\n  //defaultTheme: 'beautiful'\n});\n\nconst value = {\n  a: 12\n  b: ['jan', 'feb', 'mar'],\n  c: true,\n  d: new Date()\n};\n\nsolace.log('Some data nicely arranged:');\nsolace.log(value, {title: 'title', theme: 'outline'});\n\n```\n\n### Themes\n\n* machine: Format the output in a compact manner easily readable by a machine.\n* beautiful: Format the output in a beautiful manner.\n* outline: Format the output with the main outlines. If the data is an array of objects, it may be displayed as a table.\n\nExample of beautiful output:\n\n![Beautiful theme](/screenshots/solace-beautiful.png)\n\nExample of outline output:\n\n![Outline theme](/screenshots/solace-outline.png)\n\n\n## License\n\nMIT © [flarebyte](https://github.com/flarebyte)\n\n\n[npm-image]: https://badge.fury.io/js/solace.svg\n[npm-url]: https://npmjs.org/package/solace\n[travis-image]: https://travis-ci.org/flarebyte/solace.svg?branch=master\n[travis-url]: https://travis-ci.org/flarebyte/solace\n[daviddm-image]: https://david-dm.org/flarebyte/solace.svg?theme=shields.io\n[daviddm-url]: https://david-dm.org/flarebyte/solace\n[coveralls-image]: https://coveralls.io/repos/github/flarebyte/solace/badge.svg?branch=master\n[coveralls-url]: https://coveralls.io/github/flarebyte/solace?branch=master\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fsolace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflarebyte%2Fsolace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflarebyte%2Fsolace/lists"}