1.0.1 • Published 2 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-parser
API
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
main
branch.
LICENCE
1.0.1
2 years ago