Have ideas to improve npm?Join in the discussion! »

    github-slug

    2.0.0 • Public • Published

    github-slug

    js-standard-style Build Status

    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)
    })

    Install

    npm i github-slug

    DownloadsWeekly Downloads

    29

    Version

    2.0.0

    License

    MIT

    Last publish

    Collaborators

    • avatar
    • avatar