{"id":17347529,"url":"https://github.com/cryptiklemur/reprod","last_synced_at":"2025-03-27T11:20:20.780Z","repository":{"id":57148020,"uuid":"241468404","full_name":"cryptiklemur/reprod","owner":"cryptiklemur","description":"Quickly and easily create reproduction examples of bugs in third party code.","archived":false,"fork":false,"pushed_at":"2020-02-21T17:03:49.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T15:45:10.868Z","etag":null,"topics":["reproduction"],"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/cryptiklemur.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":"2020-02-18T21:11:45.000Z","updated_at":"2020-02-21T17:03:51.000Z","dependencies_parsed_at":"2022-09-06T18:10:11.750Z","dependency_job_id":null,"html_url":"https://github.com/cryptiklemur/reprod","commit_stats":null,"previous_names":["cryptiklemur/reprod","aequasi/reprod"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Freprod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Freprod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Freprod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cryptiklemur%2Freprod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cryptiklemur","download_url":"https://codeload.github.com/cryptiklemur/reprod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832747,"owners_count":20679702,"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":["reproduction"],"created_at":"2024-10-15T16:49:06.833Z","updated_at":"2025-03-27T11:20:20.761Z","avatar_url":"https://github.com/cryptiklemur.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"reprod\n=====\n\nQuickly create reproduction examples of third party code\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/reprod.svg)](https://npmjs.org/package/reprod)\n[![Downloads/week](https://img.shields.io/npm/dw/reprod.svg)](https://npmjs.org/package/reprod)\n[![License](https://img.shields.io/npm/l/reprod.svg)](https://github.com/aequasi/reprod/blob/master/package.json)\n\n# Usage\n```sh-session\n$ npm i -g reprod\n$ reprod -n zeit/swr@0.1.16\n\n  ✔ Preparing Dependencies\n  ✔ Creating Files\n\nFinished creating reproduction!\n\n$ cd swr-repro-\u003ctab\u003e\n...\n```\n\n# Library Owner Usage\n\nCreate a `.reprod.js` file in the root directory of the project.\n\nBuild it to match the code below:\n\n```typescript jsx\ninterface File {\n    path: string;\n    content?: string;\n    url?: string;\n    localUrl?: string;\n    permissions?: number;\n}\n\ninterface Config {\n  package: {\n    [key: string]: any;\n  };\n  files: File[];\n}\n\ntype ConfigFn = (config: {version: string; repo: string}) =\u003e Config;\n```\n\n```javascript\nconst pkg = require('./package.json');\nmodule.exports = ({version, repo}) =\u003e {\n    return {\n        package: { // This whole object gets thrown into a `package.json` file\n            dependencies: {\n                [pkg.name]: version,\n                // Any other dependencies here\n            }\n        },\n        files: [\n            {\n                path: 'index.ts',\n                content: `import Library from '${pkg.name}';\n\nLibrary.doSomethingAwesomeThatBreaks();\n`\n            }\n        ]\n    }\n}\n```\n\nYou can test this by running `reprod` in the library directory.\n\nCheck out [this library's `.reprod.js`](https://github.com/aequasi/reprod/blob/master/.reprod.js) for an example.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptiklemur%2Freprod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcryptiklemur%2Freprod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcryptiklemur%2Freprod/lists"}