()
| 387 | } |
| 388 | |
| 389 | export async function getNpmUser(): Promise<string | null> { |
| 390 | const result = await execNpm(['whoami'], { silent: true }) |
| 391 | if (result.exitCode === 0 && result.stdout) { |
| 392 | return result.stdout |
| 393 | } |
| 394 | return null |
| 395 | } |
| 396 | |
| 397 | /** |
| 398 | * Gets the user's avatar as a base64 data URL from Gravatar. |
no test coverage detected