# add-repo-url

> Add the repository information to a package.json.

Latest version **1.0.0** (published 2015-04-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install add-repo-url
pnpm add add-repo-url
yarn add add-repo-url
bun add add-repo-url
```

Provides the command `add-repo-url`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-21 |
| First published | 2015-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | José F. Romaniello |
| Maintainers | jfromaniello |

## Links

- npm: https://www.npmjs.com/package/add-repo-url
- Repository: https://github.com/jfromaniello/add-repo-url
- Issues: https://github.com/jfromaniello/add-repo-url/issues
- npm.io page: https://npm.io/package/add-repo-url

## Dependencies (1)

- [giturl](https://npm.io/package/giturl.md) 0.0.3

## Recent versions

- 1.0.0 (latest) — 2015-04-21

## README

Add the repository information to a package.json.

## Install

```
npm i -g add-repo-url
```

## Usage

Let's say you are working on a new package for npm and you have a sad package.json as follows:

```
{
  "name": "add-repo-url",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "MIT",
  "dependencies": {
  }
}
```

But you already have the remote url for git:

```
$ git remote -v
origin	git@github.com:jfromaniello/add-repo-url.git (fetch)
origin	git@github.com:jfromaniello/add-repo-url.git (push)
```

Run add-repo-url:

```
$ add-repo-url
$ cat package.json
{
  "name": "add-repo-url",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "MIT",
  "dependencies": {
  },
  "homepage": "https://github.com/jfromaniello/add-repo-url",
  "repository": {
    "type": "git",
    "url": "https://github.com/jfromaniello/add-repo-url.git"
  },
  "bugs": {
    "url": "https://github.com/jfromaniello/add-repo-url/issues"
  }
}
```

As you can see **add-repo-url** will add `homepage`, `repository` and `bugs`.

## License

MIT 2015 - José F. Romaniellos

---
_Source: https://npm.io/package/add-repo-url · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
