Home

Awesome

stringify-github-url NPM version Build Status

Generate a GitHub URL from a list of arguments or an object.

Install with npm

npm i stringify-github-url --save

Usage

var github = require('stringify-github-url');

github

Stringify a GitHub project URL.

Example

github('assemble', 'verb');
//=> 'https://github.com/assemble/verb'

github('assemble', 'verb', 'v0.6.0');
//=> 'https://github.com/assemble/verb/tree/v0.6.0'

.tarball

Stringify a github tarball URL.

Example

github.tarball('assemble', 'verb');
//=> 'https://api.github.com/repos/assemble/verb/tarball'

.zipball

Stringify a github zipball URL.

Example

github.zipball('assemble', 'verb');
//=> 'https://api.github.com/repos/assemble/verb/zipball'

Related projects

Running tests

Install dev dependencies.

npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Jon Schlinkert

License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license


This file was generated by verb-cli on March 14, 2015.