@types/temp
Advanced tools
+3
-3
@@ -22,5 +22,5 @@ // Type definitions for temp 0.9 | ||
| interface AffixOptions { | ||
| prefix?: string; | ||
| suffix?: string; | ||
| dir?: string; | ||
| prefix?: string | undefined; | ||
| suffix?: string | undefined; | ||
| dir?: string | undefined; | ||
| } | ||
@@ -27,0 +27,0 @@ |
| { | ||
| "name": "@types/temp", | ||
| "version": "0.9.0", | ||
| "version": "0.9.1", | ||
| "description": "TypeScript definitions for temp", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp", | ||
| "license": "MIT", | ||
@@ -24,4 +25,4 @@ "contributors": [ | ||
| }, | ||
| "typesPublisherContentHash": "eb80d56d647bf1b69b6ae234818e9840553b45958ffe78966e413b7273e58c5c", | ||
| "typeScriptVersion": "3.5" | ||
| "typesPublisherContentHash": "4f27e6a31d145a782ba800e74f39acb0e2080cd5246781c377854ef9f93799bb", | ||
| "typeScriptVersion": "3.6" | ||
| } |
+56
-1
@@ -9,5 +9,60 @@ # Installation | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/temp/index.d.ts) | ||
| ````ts | ||
| // Type definitions for temp 0.9 | ||
| // Project: https://github.com/bruce/node-temp | ||
| // Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser> | ||
| // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
| /// <reference types="node" /> | ||
| import * as fs from "fs"; | ||
| declare namespace temp { | ||
| interface OpenFile { | ||
| path: string; | ||
| fd: number; | ||
| } | ||
| interface Stats { | ||
| files: number; | ||
| dirs: number; | ||
| } | ||
| interface AffixOptions { | ||
| prefix?: string | undefined; | ||
| suffix?: string | undefined; | ||
| dir?: string | undefined; | ||
| } | ||
| let dir: string; | ||
| function track(value?: boolean): typeof temp; | ||
| function mkdir(affixes: string | AffixOptions | undefined, callback: (err: any, dirPath: string) => void): void; | ||
| function mkdir(affixes?: string | AffixOptions): Promise<string>; | ||
| function mkdirSync(affixes?: string | AffixOptions): string; | ||
| function open(affixes: string | AffixOptions | undefined, callback: (err: any, result: OpenFile) => void): void; | ||
| function open(affixes?: string | AffixOptions): Promise<OpenFile>; | ||
| function openSync(affixes?: string | AffixOptions): OpenFile; | ||
| function path(affixes?: string | AffixOptions, defaultPrefix?: string): string; | ||
| function cleanup(callback: (err: any, result: Stats) => void): void; | ||
| function cleanup(): Promise<Stats>; | ||
| function cleanupSync(): boolean | Stats; | ||
| function createWriteStream(affixes?: string | AffixOptions): fs.WriteStream; | ||
| } | ||
| export = temp; | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Mon, 05 Apr 2021 06:01:28 GMT | ||
| * Last updated: Fri, 02 Jul 2021 21:32:14 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +69,0 @@ * Global values: none |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
5557
44.45%1
-50%72
323.53%