Socket
Book a DemoInstallSign in
Socket

first-commit-date

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

first-commit-date

Returns a JavaScript date object with the date and time of a git repository's first commit.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
329
7.17%
Maintainers
1
Weekly downloads
 
Created
Source

first-commit-date NPM version Build Status

Returns a JavaScript date object with the date and time of a git repository's first commit.

Install

Install with npm

$ npm i first-commit-date --save

Usage

var firstCommitDate = require('first-commit-date');

firstCommitDate(function(err, date) {
  if (err) return console.log(err);
  console.log('first commit!', date);
});
//=> first commit! Tue Nov 17 2015 13:29:18 GMT-0500 (EST)
  • git-repo-name: Get the repository name from the git remote origin URL. | homepage
  • git-user-name: Get a user's name from git config at the project or global scope, depending on… more | homepage
  • git-username: Get the username from a git remote origin URL. | homepage
  • github-base: Base methods for creating node.js apps that work with the GitHub API. | homepage

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.

Keywords

commit

FAQs

Package last updated on 22 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts