@types/conf
Advanced tools
| // Type definitions for conf 2.1 | ||
| // Project: https://github.com/sindresorhus/conf | ||
| // Definitions by: Sam Verschueren <https://github.com/SamVerschueren> | ||
| // BendingBender <https://github.com/BendingBender> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| // TypeScript Version: 2.3 | ||
| /// <reference types="node" /> | ||
| declare class Conf<T = any> implements Iterable<[string, T]> { | ||
| store: { [key: string]: T }; | ||
| readonly path: string; | ||
| readonly size: number; | ||
| constructor(options?: Conf.Options<T>); | ||
| get(key: string, defaultValue?: T): T; | ||
| set(key: string, val: T): void; | ||
| set(object: { [key: string]: T }): void; | ||
| has(key: string): boolean; | ||
| delete(key: string): void; | ||
| clear(): void; | ||
| onDidChange(key: string, callback: (oldVal: T | undefined, newVal: T | undefined) => void): void; | ||
| [Symbol.iterator](): Iterator<[string, T]>; | ||
| } | ||
| declare namespace Conf { | ||
| interface Options<T> { | ||
| defaults?: { [key: string]: T }; | ||
| configName?: string; | ||
| projectName?: string; | ||
| cwd?: string; | ||
| encryptionKey?: string | Buffer | NodeJS.TypedArray | DataView; | ||
| fileExtension?: string; | ||
| } | ||
| } | ||
| export = Conf; |
+21
| 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 |
| { | ||
| "name": "@types/conf", | ||
| "version": "2.1.0", | ||
| "description": "TypeScript definitions for conf", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Sam Verschueren", | ||
| "url": "https://github.com/SamVerschueren", | ||
| "githubUsername": "SamVerschueren" | ||
| }, | ||
| { | ||
| "name": "BendingBender", | ||
| "url": "https://github.com/BendingBender", | ||
| "githubUsername": "BendingBender" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": { | ||
| "@types/node": "*" | ||
| }, | ||
| "typesPublisherContentHash": "6809efd3f6efcaaef1c33dd035cb1ec28d5fd54c4d42aa29b74be0d2d562f992", | ||
| "typeScriptVersion": "2.3" | ||
| } |
| # Installation | ||
| > `npm install --save @types/conf` | ||
| # Summary | ||
| This package contains type definitions for conf (https://github.com/sindresorhus/conf). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/conf | ||
| Additional Details | ||
| * Last updated: Fri, 14 Dec 2018 00:15:14 GMT | ||
| * Dependencies: @types/node | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Sam Verschueren <https://github.com/SamVerschueren>, BendingBender <https://github.com/BendingBender>. |
| // Type definitions for conf 1.4 | ||
| // Project: https://github.com/sindresorhus/conf | ||
| // Definitions by: Sam Verschueren <https://github.com/SamVerschueren> | ||
| // BendingBender <https://github.com/BendingBender> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| // TypeScript Version: 2.3 | ||
| interface Options<T> { | ||
| defaults?: { [key: string]: T }; | ||
| configName?: string; | ||
| projectName?: string; | ||
| cwd?: string; | ||
| } | ||
| declare class Conf<T = any> implements Iterable<[string, T]> { | ||
| store: { [key: string]: T }; | ||
| readonly path: string; | ||
| readonly size: number; | ||
| constructor(options?: Options<T>); | ||
| get(key: string, defaultValue?: T): T; | ||
| set(key: string, val: T): void; | ||
| set(object: { [key: string]: T }): void; | ||
| has(key: string): boolean; | ||
| delete(key: string): void; | ||
| clear(): void; | ||
| onDidChange(key: string, callback: (oldVal: any, newVal: any) => void): void; | ||
| [Symbol.iterator](): Iterator<[string, T]>; | ||
| } | ||
| export = Conf; |
| 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 |
| { | ||
| "name": "@types/conf", | ||
| "version": "1.4.1", | ||
| "description": "TypeScript definitions for conf", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Sam Verschueren", | ||
| "url": "https://github.com/SamVerschueren", | ||
| "githubUsername": "SamVerschueren" | ||
| }, | ||
| { | ||
| "name": "BendingBender", | ||
| "url": "https://github.com/BendingBender", | ||
| "githubUsername": "BendingBender" | ||
| } | ||
| ], | ||
| "main": "", | ||
| "types": "index", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git" | ||
| }, | ||
| "scripts": {}, | ||
| "dependencies": {}, | ||
| "typesPublisherContentHash": "7a264eed3d72e634ae1685b763d9477ebb7f4368dfd62ff9dba57a767cebdaba", | ||
| "typeScriptVersion": "2.3" | ||
| } |
| # Installation | ||
| > `npm install --save @types/conf` | ||
| # Summary | ||
| This package contains type definitions for conf (https://github.com/sindresorhus/conf). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/conf/v1 | ||
| Additional Details | ||
| * Last updated: Fri, 14 Dec 2018 00:12:23 GMT | ||
| * Dependencies: none | ||
| * Global values: none | ||
| # Credits | ||
| These definitions were written by Sam Verschueren <https://github.com/SamVerschueren>, BendingBender <https://github.com/BendingBender>. |
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
3775
7.03%32
18.52%1
Infinity%+ Added
+ Added
+ Added