Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

last-commit-log

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

last-commit-log - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

package.json
{
"name": "last-commit-log",
"version": "1.0.1",
"version": "1.0.2",
"description": "read git last commit log",

@@ -30,2 +30,5 @@ "main": "./src/index.js",

},
"engines": {
"node": ">= 8"
},
"homepage": "https://github.com/zhangyuheng/last-commit-log",

@@ -32,0 +35,0 @@ "devDependencies": {

7

README.md
# last-commit-log
<p align="center">
<p>
<a href="https://circleci.com/gh/zhangyuheng/last-commit-log/tree/master"><img src="https://img.shields.io/circleci/project/zhangyuheng/last-commit-log/master.svg" alt="Build Status"></a>

@@ -8,2 +8,3 @@ <a href="https://codecov.io/github/zhangyuheng/last-commit-log?branch=master"><img src="https://img.shields.io/codecov/c/github/zhangyuheng/last-commit-log/master.svg" alt="Coverage Status"></a>

<a href="https://www.npmjs.com/package/last-commit-log"><img src="https://img.shields.io/npm/l/last-commit-log.svg" alt="License"></a>
<a href="https://www.npmjs.com/package/last-commit-log"><img src="https://img.shields.io/node/v/last-commit-log.svg" alt="Node.js"></a>
</p>

@@ -20,7 +21,7 @@

const LCL = require('last-commit-log')
const lcl = new LCL(dir) // dir is process.cwd() by default
async function lcommit () {
try {
// dir is process.cwd() by default
const commit = await new LCL({ dir: __REPO_DIRECTORY__ }).getLastCommit()
const commit = await lcl.getLastCommit()
console.log(commit)

@@ -27,0 +28,0 @@ } catch (err) {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc