get-git-date

1.0.0-beta.1 • Public • Published

get-git-date

Gets the date a file was last modified in a git repo.

Install

NPM

$ npm i get-git-date

Yarn

$ yarn add get-git-date

Usage

const getGitDate = require('get-git-date');
 
(async () => {
    const filePath = './path/to/some/file.txt';
    const date = await getGitDate(filePath);
 
    console.log(date);
    // $ 2018-09-02T18:58:18.000Z
})();

License

MIT © Michael Novotny

Package Sidebar

Install

npm i get-git-date

Weekly Downloads

1

Version

1.0.0-beta.1

License

MIT

Unpacked Size

2.9 kB

Total Files

5

Last publish

Collaborators

  • manovotny