Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

username

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

username - npm Package Compare versions

Comparing version 2.2.2 to 2.3.0

9

index.js
'use strict';
const os = require('os');
const execa = require('execa');

@@ -23,2 +24,6 @@ const mem = require('mem');

module.exports = mem(() => {
if (os.userInfo) {
return Promise.resolve(os.userInfo().username);
}
const envVar = getEnvVar();

@@ -40,2 +45,6 @@

module.exports.sync = mem(() => {
if (os.userInfo) {
return os.userInfo().username;
}
const envVar = getEnvVar();

@@ -42,0 +51,0 @@

2

package.json
{
"name": "username",
"version": "2.2.2",
"version": "2.3.0",
"description": "Get the username of the current user",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc