Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

add-repo-url

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-repo-url

Add the repository information to a package.json.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 21 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc