@types/username
Advanced tools
+1
-1
| 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": "*" | ||
| } | ||
| } |
+2
-15
@@ -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; |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1705
-51.55%1
Infinity%3
-25%0
-100%3
50%1
Infinity%1
Infinity%3
-82.35%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added