1.0.1 • Published 3 years ago
@himenon/commit-message-parser v1.0.1
@himenon/commit-message-parser
commit message parser
Usage
Install
npm  install @himenon/commit-message-parser
yarn add     @himenon/commit-message-parser
pnpm install @himenon/commit-message-parserAPI
import { parseCommitMessage } from "@himenon/commit-message-parser";
parseCommitMessage("feat: new features");
{
  type: "feat",
  shortSummary: "new features",
  firstLineFullMessage: "feat: new features",
  parsed: ["type", "short-summary", "first-line"],
}
const tooLengthCommitMessage = `feat: abcdefg
body text
next body text`
parseCommitMessage(tooLengthCommitMessage);
{
  type: "feat",
  shortSummary: "abcdefg",
  firstLineFullMessage: "feat: abcdefg",
  parsed: ["type", "short-summary", "first-line", "body"],
  body: `body text
next body text`,
}Release
- Automatic version updates are performed when merged into the 
mainbranch. 
LICENCE
1.0.1
3 years ago