{"id":19662320,"url":"https://github.com/calemy/cutesy","last_synced_at":"2025-06-19T04:41:38.303Z","repository":{"id":65525900,"uuid":"516837770","full_name":"Calemy/cutesy","owner":"Calemy","description":"a cute javascript logger \u003c3","archived":false,"fork":false,"pushed_at":"2023-04-07T23:43:35.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T08:10:19.277Z","etag":null,"topics":["logger","logging"],"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/Calemy.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":"2022-07-22T17:39:41.000Z","updated_at":"2022-10-18T04:57:27.000Z","dependencies_parsed_at":"2024-11-11T16:10:41.269Z","dependency_job_id":null,"html_url":"https://github.com/Calemy/cutesy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Calemy/cutesy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calemy%2Fcutesy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calemy%2Fcutesy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calemy%2Fcutesy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calemy%2Fcutesy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Calemy","download_url":"https://codeload.github.com/Calemy/cutesy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Calemy%2Fcutesy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260690143,"owners_count":23047054,"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":["logger","logging"],"created_at":"2024-11-11T16:10:37.461Z","updated_at":"2025-06-19T04:41:33.290Z","avatar_url":"https://github.com/Calemy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cutesy\na cute javascript logger with helpful utility \u003c3\n\u003cbr\u003e\nsome updates still expected\n\n## How to use it\n\n#### Create a logger\n\n```js\nconst Logger = require('cutesy.js')\nconst logger = new Logger()\n```\n\n#### Change color\n\nYou can easily change the color with our color pallet consitent of currently 15 colors\n\n```js\nconst colors = [\n    \"black\", \"white\", \"red\", \"darkGreen\", \"green\",\n    \"darkBlue\", \"blue\", \"cyan\", \"purpleBlue\", \"lightBlue\", \n    \"purple\", \"lightPurple\", \"yellow\", \"pink\", \"orange\"\n]\n\nlogger.blue()\n.send(\"you can do it like this\")\n\nlogger.blue(\"or like this\")\n.send()\n\nlogger.blue(\"you even can change the color \")\n.red(\"in the same message, \")\n.green(\"by chaining colors together!\")\n.send()\n\nlogger.rainbow(\"and if you are very funny, use this :)\")\n.send()\n```\n\n#### Add Timestamp\n\nYou want a timestamp added to know when the log was made? No problem!\nWe have multiple formats for all needs.\n\n```js\nlogger.addTimestamp(\"hh:mm:ss\")\nlogger.send(\"This text has a timestamp\") // =\u003e 04:31:05 - This text has a timestamp\n```\n\n#### Prefixes/Names\n\nYou can add a prefix to know what type of log you are recieving\n\n```js\nlogger.changeTag(\"Debug\")\n.send(\"This text is a debug\") // =\u003e [Debug] | This text is a debug\n```\n\nUsing multiple Logger in the same console can look good :-)\n\n```js\nlogger1.changeTag(\"Debug\", 12) // 12 is the minimum Length of the Tag (before \" | \")\n.send(\"This text is a debug\"); // =\u003e [Debug]      | This text is a debug\n\nlogger2.changeTag(\"Production\", 12)\n.send(\"This text is a debug\"); // =\u003e [Production] | This text is a debug\n\nlogger3.changeTag(\"Test\", 12)\n.send(\"This text is a debug\"); // =\u003e [Test]       | This text is a debug\n\n#### Traces\n\nYou don't know where the log comes from? add a stack trace!\n\n```js\nlogger.sendTraced(\"This text got sent with a trace\") // =\u003e This text got sent with a trace | /home/cutesy/project/index.js:10:12\n```\n\n#### Log into files\n\never want to log stuff into a file? now you can with just one line!\nit automatically appends the log on each save\n\n```js\nlogger.save(\"./log.txt\", \"This text is in a file\")\n\n//log.txt:\n//This text is in a file\n\nlogger.send(\"We save this in a context\")\n.save(\"./log.txt\")\n\n//log.txt:\n//This text is in a file\n//We save this in a context\n```\n\n\n#### Example\nHere we want to have a blue color, with the \"Info\" tag to log into the console, and then into a file.\n\n```js\nconst Logger = require('cutesy.js')\nconst logger = new Logger()\n\nlogger.blue()\n.changeTag(\"Info\")\n.send(\"This information gets logged into a file\")\n.save(\"./log.txt\") //we don't need to define a message since we have a context\n```\n\n#### Tips\nThe Logger uses the same Tag, Timestamp and Color unless you want to change it.\n\n```js\nlogger.blue()\n.changeTag(\"Info\")\n.addTimestamp(\"hh:mm:ss\")\n.send(\"I like the color blue\") //-\u003e [Info] | 00:55:29 - I like the color blue\n\nlogger.send(\"This stays blue\") //-\u003e [Info] | 00:55:29 - This stays blue\n\nlogger.red()\n.send(\"until you change the color\") //-\u003e [Info] | 00:55:29 - until you change the color\n\nlogger.reset()\n.send(\"and you can start all over again\") //-\u003e and you can start all over again\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalemy%2Fcutesy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalemy%2Fcutesy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalemy%2Fcutesy/lists"}