package
Get the github slug (username/repo) of the current folder
npm install github-slugGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Gets the github-slug for the given directory.
Install with npm install github-slug
var ghslug = require('github-slug')
ghslug('./', function (err, slug) {
console.log(slug)
// evaluates to 'finnp/github-slug' in this directory
})Optionally you can specify a specific remote as the second argument.
ghslug('./', 'origin', function (err, slug) {
console.log(slug)
})Estimated unpacked size across 9 packages.
2.2 MB
Includes dependencies.
kenan
kenan@kenany.me
^2.0.1
2.1.0
^1.4.0
1.5.0