stringify-github-anchor
Generate a GitHub anchor URL (in-page link).
npm
Install withnpm i stringify-github-anchor --save
Usage
var githubAnchorUrl = ; ;//=> 'https://github.com/foo/bar/blob/master/index.js' ;//=> 'https://github.com/foo/bar/blob/v1.0.0/index.js' ;//=> 'https://github.com/foo/bar/blob/master/index.js#L25' ;//=> 'https://github.com/foo/bar/blob/v1.0.0/index.js#L25'
Related projects
- stringify-github-url: Generate a GitHub URL from an object.
- parse-github-url: Parse a github URL into an object.
- is-git-url: Regex to validate that a URL is a git url.
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.