Returns the GitHub username and email of the current system's .gitconfig
npm install read-git-userReturns the GitHub username and email of the current system's .gitconfig.
> [!NOTE]
> This function retrieves the original GitHub username since the stored \
> git config name is not reliable. The local name can be changed without \
> affecting any Git or GitHub activities as long as the email matches any \
> verified emails on the GitHub account.
 
``bash`
npm i read-git-user
`js
import readGitUser from "read-git-user";
const gitUser = await readGitUser();
console.log(gitUser);
// => {username: rocktimssaikia, email: rocktimthedev@gmail.com}
`
Returns a Promise
#### Options (object) :
##### dir
> Type: stringos.homedir()
> Default: .gitconfig` file. \
>
> The directory of the
> This option is available in-case the config file is not in the default dir for some systems.