{"id":16082195,"url":"https://github.com/zastinian/hedystia-useful","last_synced_at":"2025-03-18T06:30:26.468Z","repository":{"id":65683053,"uuid":"538228197","full_name":"Zastinian/hedystia-useful","owner":"Zastinian","description":"Hedystia Utility","archived":false,"fork":false,"pushed_at":"2024-06-27T22:00:46.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-13T00:34:00.925Z","etag":null,"topics":["hedystia","log","millisecond","random","type","wait"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/hedystia-useful","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Zastinian.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-09-18T20:09:03.000Z","updated_at":"2024-06-27T22:00:51.000Z","dependencies_parsed_at":"2024-10-24T14:19:07.465Z","dependency_job_id":"f6146624-2fd0-4f42-86f0-b3a547e79f20","html_url":"https://github.com/Zastinian/hedystia-useful","commit_stats":{"total_commits":23,"total_committers":2,"mean_commits":11.5,"dds":0.04347826086956519,"last_synced_commit":"86dc566265bdab0ea68b4a88929e8f57a3a7fa2f"},"previous_names":["zastinian/esmile-useful"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fhedystia-useful","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fhedystia-useful/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fhedystia-useful/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Zastinian%2Fhedystia-useful/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Zastinian","download_url":"https://codeload.github.com/Zastinian/hedystia-useful/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243906162,"owners_count":20366983,"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":["hedystia","log","millisecond","random","type","wait"],"created_at":"2024-10-09T11:26:25.721Z","updated_at":"2025-03-18T06:30:26.190Z","avatar_url":"https://github.com/Zastinian.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Installation\n\n```\nnpm i @hedystia/useful\n\nyarn add @hedystia/useful\n```\n\n## Nodejs Version\n\n- `v16.9.0` or higher\n\n## Links\n\n- [Discord](https://discord.gg/aXvuUpvRQs) [Hedystia Discord]\n- [Docs](https://docs.hedystia.com/useful/start)\n\n## Example\n\n\u003cimg src='https://cdn.discordapp.com/attachments/851919671878746112/1007663992338128956/2022-08-12_09-45-24.gif' alt='Hedystia' /\u003e\n\n## Sections\n\n### Validations\n\n| Function        | Description                    |\n| --------------- | ------------------------------ |\n| `isValidNumber` | Check if it is a number        |\n| `isEmptyString` | Check if the text is not empty |\n| `isValidUrl`    | Check that the text is a link  |\n| `isValidEmail`  | Check if it is a email         |\n\n### Generators\n\n| Function           | Description                                                 |\n| ------------------ | ----------------------------------------------------------- |\n| `generateCaptcha`  | Generates a random captcha string with the specified length |\n| `generateKey`      | Generates a unique key with the specified prefix            |\n| `generatePassword` | Generates a random password of the specified length         |\n\n### Colors\n\n| Function                    | Description                              |\n| --------------------------- | ---------------------------------------- |\n| `colorHashtag`              | Contains all hex colors starting with #  |\n| `colorZero`                 | Contains all hex colors starting with 0x |\n| `listLogColor (deprecated)` | Contains the colors for the log section  |\n| `logColor`                  | Contains the colors for the log section  |\n\n### Utils\n\n| Function                               | Description                                                                 |\n| -------------------------------------- | --------------------------------------------------------------------------- |\n| `formats`                              | Different types of text and number formats                                  |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`Number`       | Formats a number to a string with thousand separators                       |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`TitleCase`    | Formats a string to title case                                              |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`SentenceCase` | Formats a string to sentence case                                           |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`CamelCase`    | Formats a string to camel case                                              |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`KebabCase`    | Formats a string to kebab case                                              |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`SnakeCase`    | Formats a string to snake case                                              |\n| \u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;`DateFor`      | Formats a date as a string with a customizable order of day, month and year |\n| `millisecond`                          | Converts the indicated time to milliseconds                                 |\n| `wait`                                 | Execute the code after a while                                              |\n| `log`                                  | Make a log with or without color                                            |\n| `type`                                 | Check what type is provided                                                 |\n| `random`                               | Get a random number between 2 numbers                                       |\n| `randomItem`                           | Get a random element from an array                                          |\n| `symbols`                              | Returns a selected symbol                                                   |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastinian%2Fhedystia-useful","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzastinian%2Fhedystia-useful","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastinian%2Fhedystia-useful/lists"}