{"name":"gitinfo","description":"Get info about a GitHub repository.","keywords":["github","repository","info"],"version":"1.0.0","main":"src/gitinfo.js","author":{"name":"Gajus Kuizinas","email":"gk@anuary.com"},"repository":{"type":"git","url":"https://github.com/gajus/gitinfo"},"license":"BSD-3-Clause","scrips":{"test":"gulp test"},"devDependencies":{"chai":"^1.9.2","gulp":"^3.8.9","gulp-jshint":"^1.8.6","gulp-mocha":"^1.1.1"},"dependencies":{"shelljs":"^0.3.0"},"gitHead":"31ae8ad2b383a1e157893230dec939bf365dd133","bugs":{"url":"https://github.com/gajus/gitinfo/issues"},"homepage":"https://github.com/gajus/gitinfo","_id":"gitinfo@1.0.0","scripts":{},"_shasum":"9cce3294bc4c13259efeb4baedebfc9b9cd5912f","_from":".","_npmVersion":"2.1.6","_nodeVersion":"0.10.33","_npmUser":{"name":"gajus","email":"gk@anuary.com"},"maintainers":[{"name":"gajus","email":"gk@anuary.com"}],"dist":{"shasum":"9cce3294bc4c13259efeb4baedebfc9b9cd5912f","tarball":"http://registry-npm.ywwl.com/gitinfo/download/gitinfo-1.0.0.tgz","integrity":"sha512-G3X5ipE/ARWM+Lj4+RZMZ0RDQKKWqWniVfiopGQQKzjkVj+c43IJQJyc6kMbPMEj6mfvxZZX1nKi57QRUsoLtw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyv+eAZmFbuOzRoB0vB/+Ey0H4snuBA402y/W3C2Cc1AiEAlUJNqfUYUj5fQXajt3DY7QBqt/B/Wu7AH3VuSvOp7Do="}],"size":2976,"noattachment":false,"key":"/gitinfo/-/gitinfo-1.0.0.tgz"},"directories":{},"readme":"# gitinfo\n\n[![Travis build status](http://img.shields.io/travis/gajus/gitinfo/master.svg?style=flat-square)](https://travis-ci.org/gajus/gitinfo)\n[![NPM version](http://img.shields.io/npm/v/gitinfo.svg?style=flat-square)](https://www.npmjs.org/package/gitinfo)\n[![Canonical Code Style](https://img.shields.io/badge/code%20style-canonical-blue.svg?style=flat-square)](https://github.com/gajus/canonical)\n\nGets information about Git repository.\n\n## Implementation\n\ngitinfo reads the contents of the `./git` directory to extract information.\n\n## API\n\n```js\nimport createGitinfo from 'gitinfo';\n\n/**\n * @typedef Configuration\n * @property {string} [defaultBranchName] Default branch name to fallback to. Default: throws an error if branch cannot be resolved.\n * @property {string} [gitPath] Path used to resolve .git path. Defaults to `__dirname`.\n */\n\n/**\n * @access public\n * @name createGitinfo\n * @param {Configuration} userConfig\n */\nconst gitinfo = createGitinfo();\n\n/**\n * Returns **Any** GitHub repository URL.\n */\ngitinfo.getGithubUrl();\n\n/**\n * Returns **Any** Name of the current branch.\n */\ngitinfo.getBranchName();\n\n/**\n * Returns **Any** Remote URL of the current branch.\n */\ngitinfo.getRemoteUrl();\n\n/**\n * Returns **Any** Absolute path to the .git/ directory.\n */\ngitinfo.getGitPath();\n\n/**\n * Returns **Any** Username of the repository author.\n */\ngitinfo.getUsername();\n\n/**\n * Returns **Any** Repository name.\n */\ngitinfo.getName();\n\n/**\n * Returns **Any** Commit SHA of the current branch.\n */\ngitinfo.getHeadSha();\n\n/**\n * Returns **Any** Representation of the .git/config file.\n */\ngitinfo.getConfig();\n\n```\n\n## Download\n\nDownload using NPM:\n\n```sh\nnpm install gitinfo\n\n```\n","publish_time":1416341020532,"_cnpm_publish_time":1416341020532,"dist-tags":{"latest":"2.4.0"}}