{"name":"gitinfo","description":"Get info about a local clone of a GitHub repository.","keywords":["github","repository","info"],"version":"1.2.2","main":"./dist/gitinfo.js","author":{"name":"Gajus Kuizinas","email":"gk@anuary.com","url":"http://gajus.com"},"repository":{"type":"git","url":"git+https://github.com/gajus/gitinfo.git"},"license":"BSD-3-Clause","scripts":{"build":"node ./node_modules/.bin/pragmatist build","test":"node ./node_modules/.bin/pragmatist lint test"},"devDependencies":{"chai":"^3.3.0","pragmatist":"^1.1.3"},"dependencies":{"ini":"^1.3.4"},"gitHead":"917d8ec9552e9badc165c924e4b4bf42782c934e","bugs":{"url":"https://github.com/gajus/gitinfo/issues"},"homepage":"https://github.com/gajus/gitinfo#readme","_id":"gitinfo@1.2.2","_shasum":"15de89f4e5055077e19a98d43207f3f9f486e121","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"gajus","email":"gk@anuary.com"},"dist":{"shasum":"15de89f4e5055077e19a98d43207f3f9f486e121","tarball":"http://registry-npm.ywwl.com/gitinfo/download/gitinfo-1.2.2.tgz","integrity":"sha512-0smoT4136Jwv4ZMAseMWmdsnO58YPz6u/lZgRkmknXGgcifEMguH2r7/YI70/LN4YvIlZ2JlzTgZUbP3TrjR9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZwDCc3b9Gmdr1PJxEdqRhpYUKuQU+vhX1dYkDzP3ZQAiEAmHWts8peXn5jfzO0Kdy31f8Hl5SO3Q6kajIvAH2I2ek="}],"size":5995,"noattachment":false,"key":"/gitinfo/-/gitinfo-1.2.2.tgz"},"maintainers":[{"name":"gajus","email":"gk@anuary.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":1445867426633,"_cnpm_publish_time":1445867426633,"dist-tags":{"latest":"2.4.0"}}