@types/username
Advanced tools
| MIT License | ||
| Copyright (c) Microsoft Corporation. All rights reserved. | ||
| Permission is hereby granted, free of charge, to any person obtaining a copy | ||
| of this software and associated documentation files (the "Software"), to deal | ||
| in the Software without restriction, including without limitation the rights | ||
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| copies of the Software, and to permit persons to whom the Software is | ||
| furnished to do so, subject to the following conditions: | ||
| The above copyright notice and this permission notice shall be included in all | ||
| copies or substantial portions of the Software. | ||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
| IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
| FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
| AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
| LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
| OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
| SOFTWARE |
@@ -1,4 +0,5 @@ | ||
| // Type definitions for username v1.0.1 | ||
| // 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 | ||
@@ -12,5 +13,5 @@ | ||
| * | ||
| * @param callback The callback function to call asynchronously with the result. | ||
| * @return Promise<string> A promise containing the username or empty string if not found. | ||
| */ | ||
| declare function username(callback: (err: Error, result: string) => void): void; | ||
| declare function username(): Promise<string>; | ||
@@ -17,0 +18,0 @@ declare namespace username { |
| { | ||
| "name": "@types/username", | ||
| "version": "1.0.28", | ||
| "description": "TypeScript definitions for username v1.0.1", | ||
| "version": "3.0.0", | ||
| "description": "TypeScript definitions for username", | ||
| "license": "MIT", | ||
| "author": "Klaus Reimer <https://github.com/kayahr>", | ||
| "contributors": [ | ||
| { | ||
| "name": "Klaus Reimer", | ||
| "url": "https://github.com/kayahr", | ||
| "githubUsername": "kayahr" | ||
| }, | ||
| { | ||
| "name": "Akos Krivachy", | ||
| "url": "https://github.com/krivachy", | ||
| "githubUsername": "krivachy" | ||
| } | ||
| ], | ||
| "main": "", | ||
@@ -14,4 +25,4 @@ "repository": { | ||
| "dependencies": {}, | ||
| "typings": "index.d.ts", | ||
| "typesPublisherContentHash": "0c2f6f47e5d177c173629cfd4f69537dbd7ff97b58cfab0d3a318fdc87a7ba78" | ||
| "typesPublisherContentHash": "36bd8d5dd8d7c704afa7f68177d9e3875f2da1e51ff846097ec0037e8fc69ec1", | ||
| "typeScriptVersion": "2.0" | ||
| } |
@@ -5,15 +5,13 @@ # Installation | ||
| # Summary | ||
| This package contains type definitions for username v1.0.1 (https://www.npmjs.com/package/username). | ||
| 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/types-2.0/username | ||
| Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/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 | ||
| * 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>. | ||
| These definitions were written by Klaus Reimer <https://github.com/kayahr>, Akos Krivachy <https://github.com/krivachy>. |
| { | ||
| "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" | ||
| } |
3519
23.43%23
-50%17
-10.53%