{"id":16439117,"url":"https://github.com/milospaunovic/complete-randomer","last_synced_at":"2025-03-23T08:31:51.189Z","repository":{"id":37016202,"uuid":"361402574","full_name":"MilosPaunovic/complete-randomer","owner":"MilosPaunovic","description":"A simple NPM helper package for generating random values.","archived":false,"fork":false,"pushed_at":"2023-07-28T17:32:58.000Z","size":740,"stargazers_count":2,"open_issues_count":6,"forks_count":1,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-04-26T18:43:44.554Z","etag":null,"topics":["boolean","color","date","generator","number","random","string"],"latest_commit_sha":null,"homepage":"https://bit.ly/3BNq2zK","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/MilosPaunovic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2021-04-25T10:54:00.000Z","updated_at":"2023-03-04T17:57:50.000Z","dependencies_parsed_at":"2024-10-11T09:08:04.867Z","dependency_job_id":"0359d6b4-bf3e-491b-b23b-f7e0cde18efb","html_url":"https://github.com/MilosPaunovic/complete-randomer","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilosPaunovic%2Fcomplete-randomer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilosPaunovic%2Fcomplete-randomer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilosPaunovic%2Fcomplete-randomer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilosPaunovic%2Fcomplete-randomer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MilosPaunovic","download_url":"https://codeload.github.com/MilosPaunovic/complete-randomer/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078067,"owners_count":20557274,"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":["boolean","color","date","generator","number","random","string"],"created_at":"2024-10-11T09:08:00.542Z","updated_at":"2025-03-23T08:31:50.757Z","avatar_url":"https://github.com/MilosPaunovic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# complete-randomer\n\n[![npm version](https://badge.fury.io/js/complete-randomer.svg)](https://badge.fury.io/js/complete-randomer) [![Testing](https://github.com/MilosPaunovic/complete-randomer/actions/workflows/testing.yml/badge.svg)](https://github.com/MilosPaunovic/complete-randomer/actions/workflows/testing.yml) [![MIT Licence](https://badges.frapsoft.com/os/mit/mit.svg?v=103)](https://github.com/MilosPaunovic/complete-randomer/blob/develop/LICENSE)\n\nA simple NPM helper package for generating random values.\n\n## Install\n\n```bash\nnpm i complete-randomer\n# or\nyarn add complete-randomer\n```\n\n## Usage\n\n```js\nconst randomer = require('complete-randomer');\n```\n\n## Methods\n\n#### Number\n\n```js\n// Integer between min \u0026 max parameters, inclusively\nrandomer.NUMBER.INTEGER(min, max); // Defaults to 1, 100\n```\n\n#### String\n\n```js\n// Parameter number of characters, could be used as a random password generator\nrandomer.STRING.GIBBERISH(length); // Defaults to 10\n\n// Array of full name strings between 1 and 1000 results\nrandomer.STRING.NAMES(howMany); // Defaults to 10\n```\n\n#### Boolean\n\n```js\n// Random Boolean value\nrandomer.BOOLEAN.IS();\n\n// Random YES or NO string\nrandomer.BOOLEAN.YES_NO();\n```\n\n#### Colors\n```js\n// HEX, #41D831\nrandomer.COLOR.HEX();\n\n// RGB, rgb(180 206 38)\nrandomer.COLOR.RGB();\n\n// RGBA, rgb(22 26 189 / 60%)\nrandomer.COLOR.RGBA();\n\n// HSL, hsl(346 78% 49%)\nrandomer.COLOR.HSL();\n\n// HSLA, hsl(134 75% 74% / 26%)\nrandomer.COLOR.HSLA();\n```\n\n#### Date\n\n```js\n// Random date between 01/01/1970 and 31/12/2030\nrandomer.DATE.FULL();\n\n// Random date between 01/01/1970 and current date\nrandomer.DATE.PAST();\n\n// Random date between current date and 31/12/2030\nrandomer.DATE.FUTURE();\n```\n\n#### Quotes\n\n```js\n// Random quote object, { text: '...', author: '...' }\nrandomer.QUOTES.SINGLE();\n\n// Array of quote objects between 1 and 1000 results\nrandomer.QUOTES.LIST(howMany); // Defaults to 10\n```\n\n#### Emails\n\n```js\n// Random email address with 'host' part customizable\nrandomer.EMAIL.SINGLE(host); // Defaults to randomer\n\n// Array of email addresses between 1 and 1000 results\nrandomer.EMAIL.LIST(howMany); // Defaults to 10\n```\n\n#### Users\n\n```js\n// Random user object, { firstName: '...', lastName: '...', email: '...', password: '...', dob: '...' }\nrandomer.USER.SINGLE();\n\n// Array of user objects between 1 and 1000 results\nrandomer.USER.LIST(howMany); // Defaults to 10\n```\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\n## License\n\n[MIT](https://raw.githubusercontent.com/MilosPaunovic/complete-randomer/main/LICENSE/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilospaunovic%2Fcomplete-randomer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilospaunovic%2Fcomplete-randomer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilospaunovic%2Fcomplete-randomer/lists"}