@types/username
Advanced tools
| // Type definitions for username v1.0.1 | ||
| // Project: https://www.npmjs.com/package/username | ||
| // Definitions by: Klaus Reimer <https://github.com/kayahr> | ||
| // 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. | ||
| * | ||
| * @param callback The callback function to call asynchronously with the result. | ||
| */ | ||
| declare function username(callback: (err: Error, result: string) => void): void; | ||
| 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; |
| { | ||
| "name": "@types/username", | ||
| "version": "1.0.28", | ||
| "description": "TypeScript definitions for username v1.0.1", | ||
| "license": "MIT", | ||
| "author": "Klaus Reimer <https://github.com/kayahr>", | ||
| "main": "", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "0c2f6f47e5d177c173629cfd4f69537dbd7ff97b58cfab0d3a318fdc87a7ba78" | ||
| } |
| # Installation | ||
| > `npm install --save @types/username` | ||
| # Summary | ||
| This package contains type definitions for username v1.0.1 (https://www.npmjs.com/package/username). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/username | ||
| Additional Details | ||
| * Last updated: Mon, 19 Sep 2016 17:28:59 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Global values: username | ||
| # Credits | ||
| These definitions were written by Klaus Reimer <https://github.com/kayahr>. |
| { | ||
| "authors": "Klaus Reimer <https://github.com/kayahr>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": "1", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "username v1.0.1", | ||
| "typingsPackageName": "username", | ||
| "projectName": "https://www.npmjs.com/package/username", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "username" | ||
| ], | ||
| "declaredModules": [ | ||
| "username" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "hasPackageJson": false, | ||
| "contentHash": "0c2f6f47e5d177c173629cfd4f69537dbd7ff97b58cfab0d3a318fdc87a7ba78" | ||
| } |
-26
| // Type definitions for username v1.0.1 | ||
| // Project: https://www.npmjs.com/package/username | ||
| // Definitions by: Klaus Reimer <https://github.com/kayahr> | ||
| // 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. | ||
| * | ||
| * @param callback The callback function to call asynchronously with the result. | ||
| */ | ||
| declare function username(callback: (err: Error, result: string) => void): void; | ||
| 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; |
-15
| { | ||
| "name": "@types/username", | ||
| "version": "1.0.27", | ||
| "description": "TypeScript definitions for username v1.0.1", | ||
| "main": "", | ||
| "scripts": {}, | ||
| "author": "Klaus Reimer <https://github.com/kayahr>", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "license": "MIT", | ||
| "typings": "index.d.ts", | ||
| "dependencies": {} | ||
| } |
-18
| # Installation | ||
| > `npm install --save @types/username` | ||
| # Summary | ||
| This package contains type definitions for username v1.0.1 (https://www.npmjs.com/package/username). | ||
| # Details | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/username | ||
| Additional Details | ||
| * Last updated: Thu, 14 Jul 2016 13:52:53 GMT | ||
| * File structure: ProperModule | ||
| * Library Dependencies: none | ||
| * Module Dependencies: none | ||
| * Global values: username | ||
| # Credits | ||
| These definitions were written by Klaus Reimer <https://github.com/kayahr>. |
| { | ||
| "authors": "Klaus Reimer <https://github.com/kayahr>", | ||
| "definitionFilename": "index.d.ts", | ||
| "libraryDependencies": [], | ||
| "moduleDependencies": [], | ||
| "libraryMajorVersion": "1", | ||
| "libraryMinorVersion": "0", | ||
| "libraryName": "username v1.0.1", | ||
| "typingsPackageName": "username", | ||
| "projectName": "https://www.npmjs.com/package/username", | ||
| "sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped", | ||
| "sourceBranch": "types-2.0", | ||
| "kind": "ProperModule", | ||
| "globals": [ | ||
| "username" | ||
| ], | ||
| "declaredModules": [ | ||
| "username" | ||
| ], | ||
| "files": [ | ||
| "index.d.ts" | ||
| ], | ||
| "contentHash": "0c2f6f47e5d177c173629cfd4f69537dbd7ff97b58cfab0d3a318fdc87a7ba78" | ||
| } |
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
2851
3.79%46
2.22%