A fresh collection of node git utilities.
$ npm i git-jiggy
$ yarn add git-jiggy
const {getLastModifiedDate} = require('git-jiggy');
(async () => {
const filePath = './path/to/some/file.txt';
const date = await getLastModifiedDate(filePath);
console.log(date);
// $ 2018-09-02T18:58:18.000Z
})();
All methods have a Promise
interface.
Stages files for commit.
Type: String
or Array
Amends commit with currently staged files, without editing the message.
Gets the files in the last commit.
Gets the last modified date of the file passed in.
Type: String
Gets the files that are currently staged.
MIT © Michael Novotny