{"name":"gitinfo","description":"A library for getting git info for your app at start time","version":"0.0.2","url":"https://github.com/a34729t/gitinfo","author":{"name":"Nicolas Flacco","email":"nico@elphicloud.com"},"engines":["node >= 0.4.0"],"main":"./lib/index.js","devDependencies":{},"repository":{"type":"git","url":"git://github.com/a34729t/gitinfo.git"},"_npmUser":{"name":"nico.flacco","email":"nico@elphicloud.com"},"_id":"gitinfo@0.0.2","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-3","_nodeVersion":"v0.6.10","_defaultsLoaded":true,"dist":{"shasum":"6d303d3ea18fbc5d519dd5e957dc6b0be913ac92","tarball":"http://registry-npm.ywwl.com/gitinfo/download/gitinfo-0.0.2.tgz","integrity":"sha512-Iu7otaeGT7s3dhKXCYo+sJK+U0tItjzti8kWwqhFScaoqX1omUvPFll7dfMu67gTChgCRFQG1ObF6mc2nhjM9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD34OUVrAh2DlVQzGSsvr5UwctXl/Gmh6mrUcsaxAhuTgIhAP16r0Vl2G/tmOqEuJSp8qxKr6SCbgyls4RHKIPl1ZQ+"}],"size":1387,"noattachment":false,"key":"/gitinfo/-/gitinfo-0.0.2.tgz"},"maintainers":[{"name":"nico.flacco","email":"nico@elphicloud.com"}],"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":1347933305481,"_cnpm_publish_time":1347933305481,"dist-tags":{"latest":"2.4.0"}}