0.3.0 โข Published 1 year ago
description-to-co-authors v0.3.0
Usage
npm i description-to-co-authorsPass any variant of Git/GitHub-style commit message or issue body string to this package's exported descriptionToCoAuthors.
It will collect data from each case-insensitive co-authored-by: match.
Data may include email, name, and/or username:
import { descriptionToCoAuthors } from "description-to-co-authors";
descriptionToCoAuthors(`
co-authored-by: @DirectUsername
Co-authored-by: Josh Goldberg <github@joshuakgoldberg.com>
`);[
{
"username": "DirectUsername"
},
{
"email": "github@joshuakgoldberg.com",
"name": "Josh Goldberg"
}
]!NOTE Proper
Co-authored-byattributions should use thename <email>format, not@username. The@usernameextension is only there as a friendly compatibility layer for GitHub users who don't allow seeing their email. Please don't use it unless you absolutely need to.
Contributors
๐ This package was templated with description-to-co-authors.