Socket
Book a DemoInstallSign in
Socket

get-git-date

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-git-date

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

beta
latest
Source
npmnpm
Version
1.0.0-beta.1
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

alter

FAQs

Package last updated on 08 Feb 2019

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