New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/username

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/username - npm Package Compare versions

Comparing version
3.0.0
to
5.0.0
+1
-1
username/LICENSE
MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@types/username",
"version": "3.0.0",
"description": "TypeScript definitions for username",
"license": "MIT",
"contributors": [
{
"name": "Klaus Reimer",
"url": "https://github.com/kayahr",
"githubUsername": "kayahr"
},
{
"name": "Akos Krivachy",
"url": "https://github.com/krivachy",
"githubUsername": "krivachy"
}
],
"version": "5.0.0",
"typings": null,
"description": "Stub TypeScript definitions entry for username, which provides its own types definitions",
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "36bd8d5dd8d7c704afa7f68177d9e3875f2da1e51ff846097ec0037e8fc69ec1",
"typeScriptVersion": "2.0"
"author": "",
"repository": "https://github.com/sindresorhus/username",
"license": "MIT",
"dependencies": {
"username": "*"
}
}

@@ -1,16 +0,3 @@

# Installation
> `npm install --save @types/username`
This is a stub types definition for @types/username (https://github.com/sindresorhus/username).
# Summary
This package contains type definitions for username (https://www.npmjs.com/package/username).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/username
Additional Details
* Last updated: Tue, 23 Jan 2018 20:08:10 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Klaus Reimer <https://github.com/kayahr>, Akos Krivachy <https://github.com/krivachy>.
username provides its own type definitions, so you don't need @types/username installed!
// Type definitions for username v3.0.0
// Project: https://www.npmjs.com/package/username
// Definitions by: Klaus Reimer <https://github.com/kayahr>
// Akos Krivachy <https://github.com/krivachy>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Tries to get the username from the LOGNAME, USER, LNAME or USERNAME environment variables.
* Falls back to `id -un` on OS X / Linux and `whoami` on Windows in the rare case none of the environment
* variables are set. The result is cached.
*
* @return Promise<string> A promise containing the username or empty string if not found.
*/
declare function username(): Promise<string>;
declare namespace username {
/**
* Tries to get the username from the LOGNAME, USER, LNAME or USERNAME environment variables. Falls back
* to returning an empty string in the reare case none of the environment variables are set.
*
* @return The username or empty string if not found.
*/
function sync(): string;
}
export = username;