Get or create a homepage URL from the given package.json
npm install pkg-homepageGet or create a homepage URL from the given package.json
Install with npm:
``sh`
$ npm install pkg-homepage --save
`js
var homepage = require('pkg-homepage');
homepage({homepage: 'https://github.com/foo/bar'});
//=> 'https://github.com/foo/bar'
homepage({repository: 'foo/bar'});
//=> 'https://github.com/foo/bar'
homepage({repository: {url: 'git://gitub.com/foo/bar.git'}});
//=> 'https://github.com/foo/bar'
`
You might also be interested in these projects:
* git-branch: Get the current branch for a local git repository. | homepage
* git-repo-name: Get the repository name from the git remote origin URL. | homepage
* git-user-name: Get a user's name from git config at the project or global scope, depending on… more | homepage
* git-username: Get the username from a git remote origin URL. | homepage
* parse-author: Parse a string into an object with name, email and url properties following npm conventions.… more | homepagename
* stringify-author: Stringify an authors object to . | homepage
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Generate readme and API documentation with verb:
`sh`
$ npm install verb && npm run docs
Or, if verb is installed globally:
`sh`
$ verb
Install dev dependencies:
`sh``
$ npm install -d && npm test
Jon Schlinkert
* github/jonschlinkert
* twitter/jonschlinkert
Copyright © 2016, Jon Schlinkert.
Released under the MIT license.
*
_This file was generated by verb, v0.9.0, on April 27, 2016._