@alttiri/util-node-js
Advanced tools
Comparing version 2.0.12-20240531 to 2.0.13-20240531
{ | ||
"name": "@alttiri/util-node-js", | ||
"version": "2.0.12-20240531", | ||
"version": "2.0.13-20240531", | ||
"description": "Some Node.js util functions for personal use", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,2 +0,2 @@ | ||
import { getColoring, getAnsiColoring } from "./console-colors-core"; | ||
import { getColoring, getAnsiColoring } from "./console-colors-core.js"; | ||
export { getColoring, getAnsiColoring, }; | ||
@@ -3,0 +3,0 @@ export declare const ANSI_BLUE: (text: any) => string; |
@@ -1,2 +0,2 @@ | ||
import { getColoring, getAnsiColoring } from "./console-colors-core"; | ||
import { getColoring, getAnsiColoring } from "./console-colors-core.js"; | ||
export { getColoring, getAnsiColoring, }; | ||
@@ -3,0 +3,0 @@ // Some predefined colors |
@@ -1,2 +0,2 @@ | ||
export * from "./console-colors"; | ||
export * from "./console-colors.js"; | ||
export declare const saveCursorPosition: () => boolean; | ||
@@ -3,0 +3,0 @@ export declare const restoreCursorPosition: () => boolean; |
@@ -1,2 +0,2 @@ | ||
export * from "./console-colors"; | ||
export * from "./console-colors.js"; | ||
export const saveCursorPosition = () => process.stdout.write("\u001B[s"); | ||
@@ -3,0 +3,0 @@ export const restoreCursorPosition = () => process.stdout.write("\u001B[u"); |
import fs from "node:fs/promises"; | ||
import path from "node:path"; | ||
import { Dirent } from "node:fs"; | ||
import { readLink } from "../filesystem"; | ||
import { readLink } from "../filesystem.js"; | ||
export function toListEntryDirent(dirEntry, settings) { | ||
@@ -6,0 +6,0 @@ const entryFilepath = path.resolve(settings.filepath, dirEntry.name); |
@@ -1,4 +0,4 @@ | ||
import { FileListingSetting, FileListingSettingInit } from "./settings"; | ||
import { ListEntryDirent, ListEntryBaseEx, // ListEntryDirentLink, | ||
ListEntryStats, ListEntryStatsBigInt, ListEntryStatsAny } from "./types/ListEntry"; | ||
import { FileListingSetting, FileListingSettingInit } from "./settings.js"; | ||
export declare function listFiles(initSettings: FileListingSettingInit & { | ||
@@ -5,0 +5,0 @@ stats: false; |
import fs from "node:fs/promises"; | ||
import { CountLatch, Semaphore, AsyncBufferQueue } from "@alttiri/util-js"; | ||
import { direntsToEntries, getRootEntry, toListEntryStatsError, } from "./entry-helper"; | ||
import { getDefaultSettings } from "./settings"; | ||
import { direntsToEntries, getRootEntry, toListEntryStatsError, } from "./entry-helper.js"; | ||
import { getDefaultSettings } from "./settings.js"; | ||
export async function* listFiles(initSettings = {}) { | ||
@@ -6,0 +6,0 @@ const settings = Object.assign({ ...getDefaultSettings() }, initSettings); |
@@ -1,2 +0,2 @@ | ||
import { ANSI_BLUE, ANSI_GRAY, ANSI_GREEN_BOLD, ANSI_RED_BOLD } from "./console-colors"; | ||
import { ANSI_BLUE, ANSI_GRAY, ANSI_GREEN_BOLD, ANSI_RED_BOLD } from "./console-colors.js"; | ||
export class Tester { | ||
@@ -3,0 +3,0 @@ /** @deprecated */ |
33006