New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@inkohx/git-time

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

@inkohx/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.

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

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

  • git

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)

Keywords

git

FAQs

Package last updated on 23 May 2020

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