last-commit-log
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"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": { |
# 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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5248
58