@thi.ng/file-io
Advanced tools
Comparing version 0.3.1 to 0.3.2
# Change Log | ||
- **Last updated**: 2022-05-20T09:18:30Z | ||
- **Last updated**: 2022-06-09T16:14:01Z | ||
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub) | ||
@@ -5,0 +5,0 @@ |
@@ -11,3 +11,3 @@ import type { ILogger } from "@thi.ng/logger"; | ||
*/ | ||
export declare const deleteFile: (path: string, logger?: ILogger | undefined, dryRun?: boolean) => void; | ||
export declare const deleteFile: (path: string, logger?: ILogger, dryRun?: boolean) => void; | ||
//# sourceMappingURL=delete.d.ts.map |
@@ -18,3 +18,3 @@ import type { ILogger } from "@thi.ng/logger"; | ||
*/ | ||
export declare const files: (dir: string, match?: string | RegExp, maxDepth?: number, logger?: ILogger | undefined) => IterableIterator<string>; | ||
export declare const files: (dir: string, match?: string | RegExp, maxDepth?: number, logger?: ILogger) => IterableIterator<string>; | ||
/** | ||
@@ -33,3 +33,3 @@ * Similar to {@link files}, however yields iterator of only matching | ||
*/ | ||
export declare const dirs: (dir: string, match?: string | RegExp, maxDepth?: number, logger?: ILogger | undefined) => IterableIterator<string>; | ||
export declare const dirs: (dir: string, match?: string | RegExp, maxDepth?: number, logger?: ILogger) => IterableIterator<string>; | ||
//# sourceMappingURL=files.d.ts.map |
import type { ILogger } from "@thi.ng/logger"; | ||
export declare type HashAlgo = "gost-mac" | "md4" | "md5" | "md_gost94" | "ripemd160" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512" | "streebog256" | "streebog512" | "whirlpool"; | ||
export declare const fileHash: (path: string, logger?: ILogger | undefined, algo?: HashAlgo) => string; | ||
export declare const stringHash: (src: string, logger?: ILogger | undefined, algo?: HashAlgo) => string; | ||
export declare const fileHash: (path: string, logger?: ILogger, algo?: HashAlgo) => string; | ||
export declare const stringHash: (src: string, logger?: ILogger, algo?: HashAlgo) => string; | ||
//# sourceMappingURL=hash.d.ts.map |
import type { Fn3, NumOrString } from "@thi.ng/api"; | ||
import type { ILogger } from "@thi.ng/logger"; | ||
export declare const readJSON: (path: string, logger?: ILogger | undefined) => any; | ||
export declare const readJSON: (path: string, logger?: ILogger) => any; | ||
/** | ||
@@ -19,3 +19,3 @@ * Serializes `obj` to JSON and writes result to UTF-8 file `path`. See | ||
*/ | ||
export declare const writeJSON: (path: string, obj: any, replacer?: Fn3<any, string, any, any> | NumOrString[] | null | undefined, space?: NumOrString | undefined, logger?: ILogger | undefined, dryRun?: boolean) => void; | ||
export declare const writeJSON: (path: string, obj: any, replacer?: Fn3<any, string, any, any> | NumOrString[] | null | undefined, space?: NumOrString | undefined, logger?: ILogger, dryRun?: boolean) => void; | ||
//# sourceMappingURL=json.d.ts.map |
{ | ||
"name": "@thi.ng/file-io", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Assorted file I/O utils (with logging support) for NodeJS", | ||
@@ -37,14 +37,14 @@ "type": "module", | ||
"dependencies": { | ||
"@thi.ng/api": "^8.3.6", | ||
"@thi.ng/checks": "^3.1.6", | ||
"@thi.ng/logger": "^1.1.6", | ||
"@thi.ng/random": "^3.3.0" | ||
"@thi.ng/api": "^8.3.7", | ||
"@thi.ng/checks": "^3.2.0", | ||
"@thi.ng/logger": "^1.1.7", | ||
"@thi.ng/random": "^3.3.1" | ||
}, | ||
"devDependencies": { | ||
"@microsoft/api-extractor": "^7.23.1", | ||
"@thi.ng/testament": "^0.2.7", | ||
"@microsoft/api-extractor": "^7.25.0", | ||
"@thi.ng/testament": "^0.2.8", | ||
"rimraf": "^3.0.2", | ||
"tools": "^0.0.1", | ||
"typedoc": "^0.22.15", | ||
"typescript": "^4.6.4" | ||
"typedoc": "^0.22.17", | ||
"typescript": "^4.7.3" | ||
}, | ||
@@ -112,3 +112,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "e23901b8582af71d8a29e0ce4929f15ac509f9e5\n" | ||
"gitHead": "9e516d30a1a537e027a6b3d78bf9121bc5831d31\n" | ||
} |
import type { TypedArray } from "@thi.ng/api"; | ||
import type { ILogger } from "@thi.ng/logger"; | ||
export declare const createTempFile: (body: string | TypedArray, logger?: ILogger | undefined, name?: string | undefined) => string; | ||
export declare const tempFilePath: (name?: string | undefined) => string; | ||
export declare const createTempFile: (body: string | TypedArray, logger?: ILogger, name?: string) => string; | ||
export declare const tempFilePath: (name?: string) => string; | ||
//# sourceMappingURL=temp.d.ts.map |
import type { ILogger } from "@thi.ng/logger"; | ||
export declare const readText: (path: string, logger?: ILogger | undefined) => string; | ||
export declare const readText: (path: string, logger?: ILogger) => string; | ||
/** | ||
@@ -13,3 +13,3 @@ * Writes `body` as UTF-8 file to given `path`. If `dryRun` is true (default: | ||
*/ | ||
export declare const writeText: (path: string, body: string | string[], logger?: ILogger | undefined, dryRun?: boolean) => void; | ||
export declare const writeText: (path: string, body: string | string[], logger?: ILogger, dryRun?: boolean) => void; | ||
//# sourceMappingURL=text.d.ts.map |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import type { TypedArray } from "@thi.ng/api"; | ||
@@ -16,3 +15,3 @@ import type { ILogger } from "@thi.ng/logger"; | ||
*/ | ||
export declare const writeFile: (path: string, body: string | TypedArray, opts?: WriteFileOptions | undefined, logger?: ILogger | undefined, dryRun?: boolean) => void; | ||
export declare const writeFile: (path: string, body: string | TypedArray, opts?: WriteFileOptions, logger?: ILogger, dryRun?: boolean) => void; | ||
//# sourceMappingURL=write.d.ts.map |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
30548
369
Updated@thi.ng/api@^8.3.7
Updated@thi.ng/checks@^3.2.0
Updated@thi.ng/logger@^1.1.7
Updated@thi.ng/random@^3.3.1