{"_id":"@cjser/repo-url-from-package","name":"@cjser/repo-url-from-package","dist-tags":{"latest":"1.0.0-cjser.2"},"versions":{"1.0.0-cjser.2":{"name":"@cjser/repo-url-from-package","version":"1.0.0-cjser.2","description":"Extracts the repo URL from a package.json object","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":{"types":"./index.d.ts","require":"./dist-cjser/index.cjs","default":"./index.js"},"sideEffects":false,"engines":{"node":">=20"},"scripts":{"test":"xo && ava && tsd"},"keywords":["repo","repository","url","package","json","parse"],"dependencies":{"github-url-from-git":"^1.5.0"},"devDependencies":{"ava":"^6.4.0","tsd":"^0.32.0","xo":"^1.1.1"},"types":"./index.d.ts","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"1.0.0","cjserVersion":2,"original":{"name":"repo-url-from-package","version":"1.0.0","exports":{"types":"./index.d.ts","default":"./index.js"},"repository":"sindresorhus/repo-url-from-package","dependencies":{"github-url-from-git":"^1.5.0"},"files":["index.js","index.d.ts"],"scripts":{"test":"xo && ava && tsd"}}},"_id":"@cjser/repo-url-from-package@1.0.0-cjser.2","gitHead":"a4bef54d7d22d3d9a6b84528457938d84cd65fe7","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-dy1Ak8V3UFNDAhd3uQEfL9hqVMJLUB55tfcApbWdTyIavtM6PHti09jyvlrIxjTv0kcLgSxiDaHI25p3iDSTiQ==","shasum":"9126dbdce05e3ef245996239f81a134582b2f646","tarball":"https://registry.npmjs.org/@cjser/repo-url-from-package/-/repo-url-from-package-1.0.0-cjser.2.tgz","fileCount":6,"unpackedSize":8643,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC/+MwryId5FKjGD6XeVljrsJ/6SgWjzJ+mgQKb3iRVqQIgedojSHv9xj5e9fxHREUkXP0AY6eRNYBFzel6e6VfUIg="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/repo-url-from-package_1.0.0-cjser.2_1778159825324_0.2488249740060775"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T13:17:05.181Z","1.0.0-cjser.2":"2026-05-07T13:17:05.470Z","modified":"2026-05-07T13:17:05.742Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Extracts the repo URL from a package.json object","keywords":["repo","repository","url","package","json","parse"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"license":"MIT","readme":"# repo-url-from-package\n\n> Extracts the repo URL from a package.json object\n\n## Install\n\n```sh\nnpm install repo-url-from-package\n```\n\n## Usage\n\n```js\nimport repoUrlFromPackage from 'repo-url-from-package';\nimport packageJson from './package.json' with {type: 'json'};\n\nconst {url} = repoUrlFromPackage(packageJson);\n\nconsole.log(url);\n//=> 'https://github.com/sindresorhus/repo-url-from-package'\n```\n\n## API\n\n### repoUrlFromPackage(packageJson)\n\nReturns an object with the possible parsed `url` and an array of any `warnings`.\n\n#### packageJson\n\nType: `object`\n\nA `package.json` object.\n\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/sindresorhus/repo-url-from-package\n","readmeFilename":"readme.md","_rev":"1-057e947edaf26e62edee88890f7204ff"}