npm.io
2.3.3 • Published 1 month ago

@thi.ng/file-io

Licence
Apache-2.0
Version
2.3.3
Deps
5
Size
50 kB
Vulns
0
Weekly
0

@thi.ng/file-io

npm version npm downloads Mastodon Follow

This is one of 217 standalone projects. LLM-free, human-made and cared for software, maintained as part of the @thi.ng/umbrella ecosystem and anti-framework.

Please help me to work full-time on these projects by sponsoring me. Thank you!

About

Assorted file I/O utils (w/ logging support) for NodeJS/Bun.

Most functions in this package have optional support for the ILogger logging interface.

Available functions

Files
Directories
Logging

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/file-io

ESM import:

import * as fio from "@thi.ng/file-io";

For Node.js REPL:

const fio = await import("@thi.ng/file-io");

Package sizes (brotli'd, pre-treeshake): ESM: 2.50 KB

Dependencies

Note: @thi.ng/api is in most cases a type-only import (not used at runtime)

Usage examples

One project in this repo's /examples directory is using this package:

Screenshot Description Live demo Source
CLI util to visualize umbrella pkg stats Source

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-file-io,
  title = "@thi.ng/file-io",
  author = "Karsten Schmidt",
  note = "https://thi.ng/file-io",
  year = 2022
}

License

2022 - 2026 Karsten Schmidt // Apache License 2.0

Keywords