basant307/AI_Governance_Project
045
1# github-from-package2 3return the github url from a package.json file4 5[](http://travis-ci.org/substack/github-from-package)6 7# example8 9For the `./package.json` file:10 11``` json12{13 "name": "beep-boop",14 "version": "1.2.3",15 "repository" : {16 "type" : "git",17 "url": "git@github.com:substack/beep-boop.git"18 }19}20```21 22``` js23var github = require('github-from-package');24var url = github(require('./package.json'));25console.log(url);26```27 28```29https://github.com/substack/beep-boop30```31 32# methods33 34``` js35var github = require('github-from-package')36```37 38## var url = github(pkg)39 40Return the most likely github url from the package.json contents `pkg`. If no41github url can be determined, return `undefined`.42 43# install44 45With [npm](https://npmjs.org) do:46 47```48npm install github-from-package49```50 51# license52 53MIT54 