@toolbox-ts/file
v0.5.0
Published
Node file system utilities
Downloads
635
Maintainers
Readme
@toolbox-ts/file
Utility functions for common file operations: finding files, loading/parsing configs, and writing templates. Designed for config-driven tools where you need to locate files, load structured content, and persist artifacts safely.
pnpm add @toolbox-ts/utils
# or
npm install @toolbox-ts/utils
# or
yarn add @toolbox-ts/utilsTODO: generate full docs using TypeDoc
Features
- Find files with
fast-glob(search all, first up, or first down). - Load modules (
.ts/.js) with jiti, supporting default/named/function exports. - Parse JSON configs with optional custom resolvers.
- Write files with overwrite policies (
force,prompt,skip). - Write templates into directories with safe overwrite handling.
Notes
findusesfast-glob.load-moduleusesjitifor seamless TS/JS imports.- Overwrite behavior is explicit to avoid accidental data loss.
⚖️ License
MIT – © 2025 Nolan Gajdascz GitHub | NPM
