git-time
@inkohx/git-time is a JavaScript module that converts a file's created date, modified date, etc. to a Date object using the "git log" command.
Requirements
Usage
CommonJS
const gitTime = require('@inkohx/git-time').default
gitTime('A', './file.name')
.then(value => console.log('Added Date', value))
.catch(console.error)
Import/Export
import gitTime from '@inkohx/git-time'
gitTime('M', './file.name')
.then(value => console.log('Modified Date', value))
.catch(console.error)