This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@inkohx/git-time
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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)

Readme

Keywords

Package Sidebar

Install

npm i @inkohx/git-time

Weekly Downloads

2

Version

0.0.1

License

MIT

Unpacked Size

7.14 kB

Total Files

5

Last publish

Collaborators

  • inkohx