{"id":17472548,"url":"https://github.com/shinnn/parse-user-repo","last_synced_at":"2025-03-28T07:45:52.787Z","repository":{"id":57319575,"uuid":"48690665","full_name":"shinnn/parse-user-repo","owner":"shinnn","description":"Parse a username/repo string","archived":false,"fork":false,"pushed_at":"2018-12-22T05:57:27.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T03:08:55.609Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tonicdev.com/npm/parse-user-repo","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shinnn.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":"2015-12-28T12:04:49.000Z","updated_at":"2018-12-22T05:57:28.000Z","dependencies_parsed_at":"2022-08-25T20:40:55.479Z","dependency_job_id":null,"html_url":"https://github.com/shinnn/parse-user-repo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fparse-user-repo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fparse-user-repo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fparse-user-repo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shinnn%2Fparse-user-repo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shinnn","download_url":"https://codeload.github.com/shinnn/parse-user-repo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245991554,"owners_count":20706126,"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":"2024-10-18T17:26:32.094Z","updated_at":"2025-03-28T07:45:52.766Z","avatar_url":"https://github.com/shinnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-user-repo\n\n[![npm version](https://img.shields.io/npm/v/parse-user-repo.svg)](https://www.npmjs.com/package/parse-user-repo)\n[![Build Status](https://travis-ci.com/shinnn/parse-user-repo.svg?branch=master)](https://travis-ci.com/shinnn/parse-user-repo)\n[![Coverage Status](https://img.shields.io/coveralls/shinnn/parse-user-repo.svg)](https://coveralls.io/github/shinnn/parse-user-repo?branch=master)\n\nParse a `username/repo` string\n\n## Installation\n\n[Use](https://docs.npmjs.com/cli/install) [npm](https://docs.npmjs.com/about-npm/).\n\n```\nnpm install parse-user-repo\n```\n\n## API\n\n```javascript\nimport parseUserRepo from 'parse-user-repo';\n```\n\n### parseUserRepo(*str*)\n\n*str*: `string` (`user/repo` style repository identifier, for example \u003chttps://github.com/holman/spark\u003e → `'holman/spark'`)  \nReturn: `Object` (`{username: ..., repo: ...}`)\n\nIt extracts a username and a repository name from a `user/repo` string and creates an `Object`.\n\n```javascript\nparseUserRepo('gohugoio/hugo'); //=\u003e {username: 'gohugoio', repo: 'hugo'}\n```\n\n## License\n\n[ISC License](./LICENSE) © 2018 Shinnosuke Watanabe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fparse-user-repo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshinnn%2Fparse-user-repo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshinnn%2Fparse-user-repo/lists"}