
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
git-mob-core
Advanced tools
Beta
The core API for managing Git Mob co-authors.
Shared between Git Mob CLI and Git Mob VS code.
npm i git-mob-core
process.env.GITMOB_MESSAGE_PATH
set the primary path to Git message templateprocess.env.GITMOB_COAUTHORS_PATH
set the primary path to coauthors file// Write actions
saveNewCoAuthors(authors: Author[]): <Promise<Author[]>>
createCoAuthorsFile(authors: Author[]): <Promise<boolean>>
updateGitTemplate(selectedAuthors?: Author[]): void
solo(): <Promise<void>>
setCoAuthors(keys: string[]): <Promise<Author[]>>
messageFormatter(txt: string, authors: Author[]): string
// Read actions
getAllAuthors(): <Promise<Author[]>>
getPrimaryAuthor(): <Promise<Author | undefined>>
getSelectedCoAuthors(allAuthors): <Promise<Author[]>>
setPrimaryAuthor(author: Author): void
repoAuthorList(authorFilter?: string): Promise<Author[] | undefined>
pathToCoAuthors(): <Promise<string>>
// GitHub
fetchGitHubAuthors(userNames: string[], userAgent: string): <Promise<Author[]>>
searchGitHubAuthors(query: string, userAgent: string): <Promise<Author[]>>
gitRevParse = {
insideWorkTree(): <Promise<string>>,
topLevelDirectory(): <Promise<boolean>>,
};
// Config manager for library
// supported prop: "processCwd" = set the directory to exec commands
getConfig(prop: string): string | undefined
updateConfig(prop: string, value: string): void
// Read GitMob properties from Git config file
gitMobConfig = {
localTemplate(): <Promise<boolean>>,
fetchFromGitHub(): <Promise<boolean>>,
};
// Read Git properties from Git config
gitConfig = {
getLocalCommitTemplate(): <Promise<string>>,
getGlobalCommitTemplate(): <Promise<string>>,
};
Do not change the structure of the class.
class Author;
// Properties
Author.key: string
Author.name: string
Author.email: string
Author.trailer: AuthorTrailers // defaults to AuthorTrailers.CoAuthorBy
//Methods
Author.format(): string
Author.toString(): string
git-mob-core 0.10.1
FAQs
Git Mob Core library to manage co-authoring
The npm package git-mob-core receives a total of 195 weekly downloads. As such, git-mob-core popularity was classified as not popular.
We found that git-mob-core demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.