{"name":"get-first-commit","description":"Returns a git repository's first commit as a JavaScript object.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/get-first-commit","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/get-first-commit.git"},"bugs":{"url":"https://github.com/jonschlinkert/get-first-commit/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"gitty":"^3.2.3","lazy-cache":"^0.2.4"},"devDependencies":{"mocha":"*"},"keywords":["commit","first","get"],"verb":{"related":{"list":["github-base","git-repo-name","git-user-name","git-username"]}},"gitHead":"69668ba3be92a629d4291bf78d52219da312f07c","_id":"get-first-commit@0.2.0","_shasum":"e2948c0bf7859b40ddba6b5525f383db87251396","_from":".","_npmVersion":"3.3.6","_nodeVersion":"5.0.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"e2948c0bf7859b40ddba6b5525f383db87251396","tarball":"http://registry-npm.ywwl.com/get-first-commit/download/get-first-commit-0.2.0.tgz","integrity":"sha512-fpiUAB+Tvjb7MIRKUsmjyuAkVakR0boBNpIzCrwqpWJqUV8wSPUtWNiHKCf8KiUJrMMJq2Mzy7DP9as3nVFQ/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA4axvUlW/7oQZ7jlPbF+YRwu5Lp+5fwUSrQLPv1wctOAiA5ZFPwXTeBMv8X9ZxyAhf1RtZQLWKz8rvrcFqthZtB0Q=="}],"size":2649,"noattachment":false,"key":"/get-first-commit/-/get-first-commit-0.2.0.tgz"},"directories":{},"readme":"# get-first-commit [![NPM version](https://badge.fury.io/js/get-first-commit.svg)](http://badge.fury.io/js/get-first-commit)  [![Build Status](https://travis-ci.org/jonschlinkert/get-first-commit.svg)](https://travis-ci.org/jonschlinkert/get-first-commit)\n\n> Returns a git repository's first commit as a JavaScript object.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i get-first-commit --save\n```\n\n## Usage\n\n```js\nvar getFirstCommit = require('get-first-commit');\n\ngetFirstCommit(function(err, commit) {\n  if (err) return console.log(err);\n  console.log(commit);\n});\n```\n\n**Results in**\n\n```js\n{ commit: 'b371794fbdbdd68498e8c9f3bf766b095ad2fb30',\n  author: 'jonschlinkert <jon.schlinkert@sellside.com>',\n  date: 'Sun Nov 22 07:44:07 2015 -0500',\n  message: 'first commit' }\n```\n\n## API\n\n### [firstCommit](index.js#L28)\n\nAsynchronously get the first commit from a git repository.\n\n**Params**\n\n* `cwd` **{String}**: current working directory\n* `callback` **{Function}**\n* `returns` **{Object}**\n\n**Example**\n\n```js\nfirstCommit('foo/.git', function(err, commit) {\n  if (err) return console.log(err);\n  // do stuff with commit\n});\n```\n\n### [.sync](index.js#L58)\n\nSynchronously get the first commit from a git repository.\n\n**Params**\n\n* `cwd` **{String}**: current working directory\n* `returns` **{Object}**\n\n**Example**\n\n```js\nvar commit = firstCommit.sync('foo/.git');\n```\n\n## Related projects\n\n* [git-repo-name](https://www.npmjs.com/package/git-repo-name): Get the repository name from the git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-repo-name)\n* [git-user-name](https://www.npmjs.com/package/git-user-name): Get a user's name from git config at the project or global scope, depending on… [more](https://www.npmjs.com/package/git-user-name) | [homepage](https://github.com/jonschlinkert/git-user-name)\n* [git-username](https://www.npmjs.com/package/git-username): Get the username from a git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username)\n* [github-base](https://www.npmjs.com/package/github-base): Base methods for creating node.js apps that work with the GitHub API. | [homepage](https://github.com/jonschlinkert/github-base)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/get-first-commit/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 22, 2015._","publish_time":1448197496724,"_cnpm_publish_time":1448197496724,"dist-tags":{"latest":"0.2.0"}}