{"id":22143702,"url":"https://github.com/astridlyre/offhand","last_synced_at":"2026-05-20T07:01:24.043Z","repository":{"id":57110511,"uuid":"443674830","full_name":"astridlyre/offhand","owner":"astridlyre","description":"A Random Data Generator Library for JavaScript.","archived":false,"fork":false,"pushed_at":"2022-01-03T07:18:27.000Z","size":255,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-30T07:39:59.430Z","etag":null,"topics":["data","generator","javascript","library","random","typescript"],"latest_commit_sha":null,"homepage":"","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/astridlyre.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}},"created_at":"2022-01-02T03:42:21.000Z","updated_at":"2022-01-03T07:18:30.000Z","dependencies_parsed_at":"2022-08-20T22:20:36.137Z","dependency_job_id":null,"html_url":"https://github.com/astridlyre/offhand","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/astridlyre/offhand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astridlyre%2Foffhand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astridlyre%2Foffhand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astridlyre%2Foffhand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astridlyre%2Foffhand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/astridlyre","download_url":"https://codeload.github.com/astridlyre/offhand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/astridlyre%2Foffhand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273656550,"owners_count":25145001,"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","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data","generator","javascript","library","random","typescript"],"created_at":"2024-12-01T22:15:12.073Z","updated_at":"2026-05-20T07:01:23.979Z","avatar_url":"https://github.com/astridlyre.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# offhand\n\nGenerate random values in JavaScript programs.\n\n## Install\n\n```bash\nnpm install @ebflat9/offhand\n```\n\n## Usage\n\n```javascript\nimport { Offhand } from '@ebflat9/offhand'\n\nconst offhand = new Offhand({ locale: 'en-US' })\n\n// Generate a random generator function from an Array or an Object.\nconst randomNumbers = offhand.randomGenerator.from([1, 2, 3, 4, 5])\n\n// randomNumbers() =\u003e 2\n// randomNumbers() =\u003e 1\n// randomNumbers() =\u003e 5 ... etc\n\n// Fill placeholders with values.\noffhand.replacer.letterify('XXXX-XXXX') // =\u003e aFeLk-UPoi\noffhand.replacer.numberify('####-####') // =\u003e 3549-9883\n\n// Generate random dates\noffhand.date.random('YYYY-MM-DD') // =\u003e 2005-05-02\n\n// Generate random times\noffhand.date.time() // =\u003e 14:34:22\n\n// Generate random credit card information\noffhand.creditCard.paymentDetails()\n/*\n{\n  \"type\": \"MasterCard\",\n  \"number\": \"5345568597860043\",\n  \"expiration\": \"05/23\",\n  \"holder\": \"John Smith\"\n}\n*/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastridlyre%2Foffhand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastridlyre%2Foffhand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastridlyre%2Foffhand/lists"}