Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wilsson/json-last-commit
Get some data from the last commit in a json.
https://github.com/wilsson/json-last-commit
Last synced: 19 days ago
JSON representation
Get some data from the last commit in a json.
- Host: GitHub
- URL: https://github.com/wilsson/json-last-commit
- Owner: wilsson
- License: mit
- Created: 2017-06-20T03:22:44.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-06-20T07:13:37.000Z (over 7 years ago)
- Last Synced: 2024-12-03T08:25:45.735Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://badge.fury.io/js/json-last-commit)
[](https://travis-ci.org/wilsson/json-last-commit)> **json-last-commit** - Get some data from the last commit in a json.
## Usage
### Sync
```js
var jlc = require("json-last-commit");
var commit = jlc.sync();
console.log(commit);
```### Async
```js
var jlc = require("json-last-commit");
jlc.async(function(commit){
console.log(commit);
});
```### Output
```js
{
author: 'wilsonft',
email: '[email protected]',
subject: 'add commit',
ahash: '5f173a6',
hash: '5f173a6cc0cc6c37d91d1305ea0623bdc787ba8d'
}
```