mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-12 20:50:36 +00:00
10 lines
No EOL
231 B
TypeScript
10 lines
No EOL
231 B
TypeScript
export default function get(): string|null {
|
|
const userAgent = process.env.npm_config_user_agent
|
|
if (!userAgent) {
|
|
return null;
|
|
}
|
|
|
|
const manager = userAgent.split(" ")[0].split("/")[0];
|
|
|
|
return manager
|
|
} |