{"id":21627134,"url":"https://github.com/xxczaki/xa","last_synced_at":"2025-04-11T12:46:59.428Z","repository":{"id":52453182,"uuid":"117354405","full_name":"xxczaki/xa","owner":"xxczaki","description":"Beautiful \u0026 Customizable logger :heart:","archived":false,"fork":false,"pushed_at":"2021-04-28T21:38:37.000Z","size":848,"stargazers_count":84,"open_issues_count":8,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-08T22:07:00.957Z","etag":null,"topics":["beautiful","chalk","cli","color","javascript","log","log-message","message","nodejs","npm","package","simple","terminal","xa"],"latest_commit_sha":null,"homepage":"https://npmjs.com/package/xa","language":"TypeScript","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/xxczaki.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"xxczaki","patreon":"akepinski"}},"created_at":"2018-01-13T15:26:05.000Z","updated_at":"2024-11-30T05:48:16.000Z","dependencies_parsed_at":"2022-09-19T01:00:34.305Z","dependency_job_id":null,"html_url":"https://github.com/xxczaki/xa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fxa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fxa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fxa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xxczaki%2Fxa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xxczaki","download_url":"https://codeload.github.com/xxczaki/xa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248402545,"owners_count":21097331,"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":["beautiful","chalk","cli","color","javascript","log","log-message","message","nodejs","npm","package","simple","terminal","xa"],"created_at":"2024-11-25T01:15:38.969Z","updated_at":"2025-04-11T12:46:59.400Z","avatar_url":"https://github.com/xxczaki.png","language":"TypeScript","funding_links":["https://github.com/sponsors/xxczaki","https://patreon.com/akepinski","https://www.patreon.com/akepinski"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/2n3U5I8.png\" href=\"https://github.com/xxczaki/xa\" height=\"256\"\u003e\n  \u003ch2 align=\"center\"\u003exa\u003c/h2\u003e\n  \u003cp align=\"center\"\u003eSimple console logger, that works in Node.js, Electron and the Browser :heart:\u003cp\u003e\n  \n\u003cp align=\"center\"\u003e  \n\u003ca href=\"https://travis-ci.org/xxczaki/xa\"\u003e\u003cimg src=\"https://travis-ci.org/xxczaki/xa.svg?branch=master\" alt=\"Build Status\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/sindresorhus/xo\"\u003e\u003cimg src=\"https://img.shields.io/badge/code_style-XO-5ed9c7.svg\" alt=\"XO Code Style\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.youtube.com/watch?v=9auOCbH5Ns4\"\u003e\u003cimg src=\"https://img.shields.io/badge/unicorn-approved-ff69b4.svg\" alt=\"Unicorn\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n  \n \n\u003cp align=\"center\"\u003e\u003cimg src=\"screenshot.png\" alt=\"Screenshot\"\u003e\u003c/p\u003e\n\n---\n\n## Highlights\n\n* Simple API\n* Works in Node.js, Electron and the Browser\n* Customizable\n* Written in TypeScript\n\n## Install\n\n```\nnpm install xa\n```\n\n\u003ca href=\"https://www.patreon.com/akepinski\"\u003e\n\t\u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\"\u003e\n\u003c/a\u003e\n\n## Usage\n\n```js\nconst xa = require('xa');\n\nxa.success('Build finished!');\nxa.custom('TITLE', 'Nice description', {titleColor: 'yellow', backgroundColor: '#212121'});\n```\n\n## API\n\n## xa\n\nMain method\n\n### success(text)\n\n**text**\n\nType: `string`\n\nA text you want to display\n\n\n### info(text)\n\n**text**\n\nType: `string`\n\nA text you want to display\n\n### warning(text)\n\n**text**\n\nType: `string`\n\nA text you want to display\n\n### error(text)\n\n**text**\n\nType: `string`\n\nA text you want to display\n\n### custom(title, text, {titleColor, backgroundColor})\n\n**title**\n\nType: `string`\n\nTitle of the log. When in Electron, the title will be either `MAIN` or `RENDERER`.\n\n**text**\n\nType: `string`\n\nA text you want to display\n\n**titleColor**\n\nType: `string`\nDefault: `white`\n\nColor of the title. It will be converted to HEX.\n\n**backgroundColor**\n\nType: `string`\nDefault: `black`\n\nColor of title's background. It will be converted to HEX.\n\n## Thanks:\n\n- [Jamen Marzonie](https://www.npmjs.com/~jamen) for providing package name!\n\n## License\n\nMIT © [Antoni Kepinski](https://kepinski.me)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxczaki%2Fxa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxxczaki%2Fxa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxxczaki%2Fxa/lists"}