šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@commitlint/read

Package Overview
Dependencies
Maintainers
4
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/read

Read commit messages from a specified range or last edit

19.8.1
latest
Source
npm
Version published
Weekly downloads
3.8M
8.65%
Maintainers
4
Weekly downloads
Ā 
Created

What is @commitlint/read?

@commitlint/read is an npm package that provides functionality to read and parse commit messages. It is typically used in conjunction with commitlint to enforce commit message conventions.

What are @commitlint/read's main functionalities?

Read commit messages from a file

This feature allows you to read commit messages from a specified range of commits. In this example, it reads the commit message from the last commit.

const read = require('@commitlint/read');

read({from: 'HEAD~1', to: 'HEAD'}).then((messages) => {
  console.log(messages);
});

Read commit messages from stdin

This feature allows you to read commit messages from the standard input. This is useful for integrating with other tools that provide commit messages via stdin.

const read = require('@commitlint/read');

process.stdin.on('data', (data) => {
  read({edit: true}).then((messages) => {
    console.log(messages);
  });
});

Other packages similar to @commitlint/read

Keywords

conventional-changelog

FAQs

Package last updated on 08 May 2025

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