{"_id":"git-last-commit","_rev":"10-6686e2959769916db4f7047c91a46571","name":"git-last-commit","time":{"modified":"2022-06-18T08:30:55.803Z","created":"2015-07-27T14:23:18.542Z","0.1.0":"2015-07-27T14:23:18.542Z","0.1.1":"2015-07-27T14:28:46.737Z","0.2.0":"2016-08-15T09:15:42.921Z","0.3.0":"2017-06-16T14:03:25.611Z","1.0.0":"2019-07-24T20:05:34.374Z","1.0.1":"2021-08-21T12:29:29.685Z"},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"dist-tags":{"latest":"1.0.1"},"description":"Read details of the last commit including tags","readme":"# git-last-commit\r\nNode.js module to read last git commit information including tags and branch - mostly to be used by continuous integration and build systems for build tagging purposes.\r\n\r\n## Usage\r\n```javascript\r\nvar git = require('git-last-commit');\r\n\r\ngit.getLastCommit(function(err, commit) {\r\n  // read commit object properties\r\n  console.log(commit);\r\n});\r\n```\r\n\r\nFunction returns an object like this:\r\n```javascript\r\n{\r\n  \"shortHash\": \"d2346fa\",\r\n  \"hash\": \"d2346faac31de5e954ef5f6baf31babcd3e899f2\",\r\n  \"subject\": \"initial commit\",\r\n  \"sanitizedSubject\": \"initial-commit\",\r\n  \"body\": \"this is the body of the commit message\",\r\n  \"authoredOn\": \"1437988060\",\r\n  \"committedOn\": \"1437988060\",\r\n  \"author\": {\r\n    \"name\": \"Ozan Seymen\",\r\n    \"email\": \"oseymen@gmail.com\"\r\n  },\r\n  \"committer\": {\r\n    \"name\": \"Ozan Seymen\",\r\n    \"email\": \"oseymen@gmail.com\"\r\n  },\r\n  \"notes\": \"commit notes\",\r\n  \"branch\": \"master\",\r\n  \"tags\": ['R1', 'R2']\r\n}\r\n```\r\n\r\nYou can add path destination if you want to get git last commit information on another repository:\r\n```javascript\r\nvar git = require('git-last-commit');\r\n\r\ngit.getLastCommit(function(err, commit) {\r\n  // read commit object properties\r\n  console.log(commit);\r\n}, {dst: 'some/other/path'});\r\n```\r\n","versions":{"0.1.1":{"name":"git-last-commit","version":"0.1.1","description":"Read details of the last commit including tags","main":"./source/index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"https://github.com/seymen/git-last-commit"},"keywords":["git","commit","history","log"],"author":{"name":"Ozan Seymen"},"license":"MIT","bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"homepage":"https://github.com/seymen/git-last-commit","devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","sinon":"^1.15.4"},"gitHead":"103d38e594623a18286c378a6eae63470663ff79","_id":"git-last-commit@0.1.1","_shasum":"d82aa172eb2b3b68ccfee7fed2a883b1b50e0e25","_from":".","_npmVersion":"2.7.3","_nodeVersion":"0.12.1","_npmUser":{"name":"oseymen","email":"oseymen@gmail.com"},"dist":{"shasum":"d82aa172eb2b3b68ccfee7fed2a883b1b50e0e25","tarball":"https://registry.npmjs.org/git-last-commit/-/git-last-commit-0.1.1.tgz","integrity":"sha512-omxZs2a0gvC7n98lE47unbkCfP8OYffvzgbvD1pfGk/y5nZBLpyHe96X98iDyyuPvO84hwf0x3WlF5oSs/JOqg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD96hszbMgLkiUmeg031P6HvXARNujxzicXZmoe6sObNgIgSQWXS23O07IovFduZClKJV8Hn9eYtCynQlLnsJoSQCE="}]},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"directories":{}},"0.2.0":{"name":"git-last-commit","version":"0.2.0","description":"Read details of the last commit including tags","main":"./source/index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/seymen/git-last-commit.git"},"keywords":["git","commit","history","log"],"author":{"name":"Ozan Seymen"},"license":"MIT","bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"homepage":"https://github.com/seymen/git-last-commit","devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","sinon":"^1.15.4"},"gitHead":"a966c7ed02ba6d07cf26d627d7541bc3b2361084","_id":"git-last-commit@0.2.0","_shasum":"308353a17cb2c529a54e37cb131f371949bb49e6","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"oseymen","email":"oseymen@gmail.com"},"dist":{"shasum":"308353a17cb2c529a54e37cb131f371949bb49e6","tarball":"https://registry.npmjs.org/git-last-commit/-/git-last-commit-0.2.0.tgz","integrity":"sha512-w4KjZGG0MVclp+FG4u6nZl0//UXVrebzhGtEfg66MMQTx0N5npbHpRN5QdFLvcjDbivo/vH3togjxTxGw6emvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCiZvw8G5wdTWOZQ2jrXslz8HxAx4FarTq3JqZVsk+gMwIgTRuE6yEjoAJ8HkA/i55grs5lNjpsA4kTeXs3iwzQzY8="}]},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-last-commit-0.2.0.tgz_1471252541305_0.4982750497292727"},"directories":{}},"0.3.0":{"name":"git-last-commit","version":"0.3.0","description":"Read details of the last commit including tags","main":"./source/index.js","scripts":{"test":"gulp test"},"repository":{"type":"git","url":"git+https://github.com/seymen/git-last-commit.git"},"keywords":["git","commit","history","log"],"author":{"name":"Ozan Seymen"},"license":"MIT","bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"homepage":"https://github.com/seymen/git-last-commit","devDependencies":{"chai":"^3.2.0","gulp":"^3.9.0","gulp-istanbul":"^0.10.0","gulp-jshint":"^1.11.2","gulp-mocha":"^2.1.3","jshint-stylish":"^2.0.1","sinon":"^1.15.4"},"gitHead":"8d642915f3d993112fd38e71aac2944ba6da39cf","_id":"git-last-commit@0.3.0","_shasum":"cc7701adc629b747fd3b33ae5dd753a746ace9df","_from":".","_npmVersion":"4.1.2","_nodeVersion":"7.2.1","_npmUser":{"name":"oseymen","email":"oseymen@gmail.com"},"dist":{"shasum":"cc7701adc629b747fd3b33ae5dd753a746ace9df","tarball":"https://registry.npmjs.org/git-last-commit/-/git-last-commit-0.3.0.tgz","integrity":"sha512-9dMT/JOilGNXx2off97lK9ofKy44pY14sBQNhgWduISKRBv46pacSbfUxWqoV0tatpwrDahqims+kpQHeMvcdA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIigwrgDNGbYDsWtMdvCvXsvqkVfwwAhElxzWOs7QloAIgSwCedgmwD81jLtXvD5RQfIn489Ckft+OWwdZpWDlviE="}]},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-last-commit-0.3.0.tgz_1497621804672_0.8852003472857177"},"directories":{}},"1.0.0":{"name":"git-last-commit","version":"1.0.0","description":"Read details of the last commit including tags","main":"./source/index.js","scripts":{"test":"mocha","lint":"eslint source/**","coverage":"nyc npm run test"},"repository":{"type":"git","url":"git+https://github.com/seymen/git-last-commit.git"},"keywords":["git","commit","history","log"],"author":{"name":"Ozan Seymen"},"license":"MIT","bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"homepage":"https://github.com/seymen/git-last-commit","devDependencies":{"chai":"^4","mocha":"^6","eslint":"^6","nyc":"^14.1.1","sinon":"^7"},"gitHead":"027042dc465432328d2a35446d5c2be9793fe368","_id":"git-last-commit@1.0.0","_nodeVersion":"10.11.0","_npmVersion":"6.10.2","dist":{"integrity":"sha512-wpnmsd2dW1MnoencljcWO/06VUealfMaY40ZjK5t3v9ljL+bKCMbNaTn/YzwIh4pDo2hk5QcN+pLzUJ8aWB17A==","shasum":"49acbad49b0ec4dae33d3a3ac7ab0a1bacf4928e","tarball":"https://registry.npmjs.org/git-last-commit/-/git-last-commit-1.0.0.tgz","fileCount":10,"unpackedSize":19398,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOLoOCRA9TVsSAnZWagAAbTcP/iZ4Pfggej1tWtxJ9n4T\nXc1YskbONNtvXcZXLA2174dCpNSzQvNsUK0Zzsd3QSO3K2Cpz7YU03WbIK+y\nMHLIL6IpLHtWaEk1Nzdd3LyH4+dAEH4Uu+HhgOJh3DqQ0Fraam8Tp64C8Au3\nFXu/Jgj52ai9x4sl989HGQTG2fjuWIgETKhsYDJxCkbCgDtQk+VBpA6+2FJJ\nk1SzBxLtpRmzFm3LcPYouCW2M03NRSv+03Emxkbp3b5HpicRZHhRKNh6xkNY\ndn99jqjJuMq1Bz2IdFdKEp4YbM1QxNMU92vpTWbs6YmtO7G4j+zlb4eUOozm\ni50mwqh36Rn9+rVFq1k+wqOrk9WqS8rHmxhkU6Do/buL+JBsNNwgRXxvgX3b\naAPWDG2+m2brR3/kXDbemiCnllyb/3QVM+Bhe5A2VjMrsDuZvVLYWKXBEug3\n8Zg7c1g8QkTXfS7tQNFgTYbZF48THnLUUSTKzjfpF/DrqoApOmb/qGsG6tp5\nXR0I727drIztiMOzCT3eTNiatF4ullStyELQZsjl+erxWLUtzGa9lXjswZ78\n6Gas+YD1qfwK/hsPYalsD0AK14eCZYIEwgkeE3gDnOovhoAM+07ODcLrZFGy\nbABA5Z2v4lRFeYEC7eM0IZ3mrylzPrr1W78qE3nnN0mlzdx0A7qwkvfXOQSn\nRhlu\r\n=8miR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6QFrUTDc6aZbDfgvZfu+Q9Ht9Rgnb/FlCyl78k7PqdwIgWXAMCqhycmdBvFJzVOdkQaiOV2wQUGDD2Rr9lVhfF4Q="}]},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"_npmUser":{"name":"oseymen","email":"oseymen@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-last-commit_1.0.0_1563998734140_0.8223895540227102"},"_hasShrinkwrap":false},"1.0.1":{"name":"git-last-commit","version":"1.0.1","description":"Read details of the last commit including tags","main":"./source/index.js","scripts":{"test":"mocha","lint":"eslint source/**","coverage":"nyc npm run test"},"repository":{"type":"git","url":"git+https://github.com/seymen/git-last-commit.git"},"keywords":["git","commit","history","log"],"author":{"name":"Ozan Seymen"},"license":"MIT","bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"homepage":"https://github.com/seymen/git-last-commit","devDependencies":{"chai":"^4","mocha":"^6","eslint":"^6","nyc":"^14.1.1","sinon":"^7"},"gitHead":"ee8dbc1cbd9298acabb81bbd774246f29e87786a","_id":"git-last-commit@1.0.1","_nodeVersion":"15.8.0","_npmVersion":"7.5.1","dist":{"integrity":"sha512-FDSgeMqa7GnJDxt/q0AbrxbfeTyxp4ImxEw1e4nw6NUHA5FMhFUq33dTXI4Xdgcj1VQ1q5QLWF6WxFrJ8KCBOg==","shasum":"749323f09e8317c2c2878f99eeffff33650c3d57","tarball":"https://registry.npmjs.org/git-last-commit/-/git-last-commit-1.0.1.tgz","fileCount":10,"unpackedSize":19412,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhIPGpCRA9TVsSAnZWagAAHwwQAJVcrmhN/YjSZ5IDP8hz\n0wOsQFn4/5cgdS6okT/v+VlHNu1F9brKLMkKJbdv5eDMOoiUYciCQs3V1eJd\nSah+w8Yl2FJo2IAtZg26+0ExH24XCzjtCVnUmVkMWakG4JwPxNVAyq/XVQvF\n2hhmFAp2qR42yFCB1O+L5gflAIFm09mdvgP+vbjnoWMk8EtLffpIUlXBLbCt\n+SFe9S+E+2d069y3sLq1DywMrP7rV1Ttqpw/MJtgOilPz00TgluMiyVnDIlX\nQVcCR63A9OSiE3E8OEDNqv4F1kwjtDLRVnY5r6wOOUhh8sFjngsy+ZQbwdsw\nYEXP5CzL9WwI4v3vHQFbACIIvwJM1KDrUmJ/X45czbKFKznTFwOZKH5kdq9H\n7bUnzvKd0ThytarFx+ypXBJ1AMoIRxBvEcQqvYFW0/msh5et1YlnWZlj0u7e\nGXm89WCb+gLO3hpqBN4+vbb8mJZWv82pTX95dcHtMZz4pE/8hGeVtSXQyQqd\nGjdTyhxNoqb7lLymlz7i1+eSwFxDla8M5P6kJDWd/AxzklGPyDOIumLNgiXI\nRnyUUVpm1V1nsXJiUVcErVZNQMSfU3KiVY8weAXhoDdwFnfJvt85sf1gNzWc\nz9NGgURN/fKYItjCcsMzPSDniCVFdMbOozsaxWordUNPenIhgtCck8Ncf1qn\nCJdh\r\n=lywd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDw1LskvEqogd5vIinWbU4S78wwAj2wu2uDk9NQhnjeXAIhANS03urVGRKU3bls9hTB+4/B6byK8231Gg6EqgFYha/3"}]},"_npmUser":{"name":"oseymen","email":"oseymen@gmail.com"},"directories":{},"maintainers":[{"name":"oseymen","email":"oseymen@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-last-commit_1.0.1_1629548969556_0.909680774613363"},"_hasShrinkwrap":false}},"homepage":"https://github.com/seymen/git-last-commit","keywords":["git","commit","history","log"],"repository":{"type":"git","url":"git+https://github.com/seymen/git-last-commit.git"},"author":{"name":"Ozan Seymen"},"bugs":{"url":"https://github.com/seymen/git-last-commit/issues"},"license":"MIT","readmeFilename":"README.md"}