JSPM

get-first-commit

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 350
  • Score
    100M100P100Q85819F
  • License MIT

Returns a git repository's first commit as a JavaScript object.

Package Exports

  • get-first-commit

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (get-first-commit) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

get-first-commit NPM version Build Status

Returns a git repository's first commit as a JavaScript object.

Install

Install with npm

$ npm i get-first-commit --save

Usage

var getFirstCommit = require('get-first-commit');

getFirstCommit(function(err, commit) {
  if (err) return console.log(err);
  console.log(commit);
});

Results in

{ commit: 'b371794fbdbdd68498e8c9f3bf766b095ad2fb30',
  author: 'jonschlinkert <jon.schlinkert@sellside.com>',
  date: 'Sun Nov 22 07:44:07 2015 -0500',
  message: 'first commit' }

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on November 22, 2015.