{"id":24618075,"url":"https://github.com/winkgroup/misc","last_synced_at":"2026-05-19T04:11:33.337Z","repository":{"id":47960916,"uuid":"513037985","full_name":"WINKgroup/misc","owner":"WINKgroup","description":"Utility library used in WiNK for miscellaneous tasks","archived":false,"fork":false,"pushed_at":"2025-02-09T10:23:23.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-10T21:23:26.415Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/WINKgroup.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-12T07:14:12.000Z","updated_at":"2025-02-09T10:23:26.000Z","dependencies_parsed_at":"2024-03-27T23:28:41.502Z","dependency_job_id":"f855ca21-6811-4272-80e3-acf6148036eb","html_url":"https://github.com/WINKgroup/misc","commit_stats":null,"previous_names":["winkgroup/misc-wink"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fmisc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fmisc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fmisc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WINKgroup%2Fmisc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WINKgroup","download_url":"https://codeload.github.com/WINKgroup/misc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244313865,"owners_count":20433011,"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":"2025-01-24T23:49:43.369Z","updated_at":"2026-05-19T04:11:33.240Z","avatar_url":"https://github.com/WINKgroup.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# misc\nUtility library used in WiNK for miscellaneous tasks\n\n## functions\n- **timeFromNow**: english text like \"30 minutes ago\", etc...\n- **shrinkUrl**: http://veryloooooooooongurl =\u003e http://sh...rturl\n- **byteString**: 123456789 =\u003e 123.5Mb\n- **padZeros**: padZeros(50, 3) =\u003e \"050\"\n- **collapse**: looooooong text =\u003e lo...xt\n- **pickRandom**: [\"1\", \"4\", \"8\"] =\u003e \"4\" (random)\n- **camelToTitle**: dontTryThisAtHome =\u003e Dont Try This At Home\n\n## extra functions available only on NodeJS (server side)\n- **readline(question:string)**: to provide a question on the cli\n- **getKeypress() =\u003e Promise\u003cstring\u003e**: to read a key pressing in the cli","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinkgroup%2Fmisc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwinkgroup%2Fmisc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwinkgroup%2Fmisc/lists"}