0.0.1 • Published 4 years ago

@inkohx/git-time v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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.

LICENCE GitHub repo size

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)