to-read-file

Read a file content by glob patterns


Keywords
read, read-file, fs, glob, utils, commonjs, esm, lightweight, utilities
License
MIT
Install
npm install to-read-file@1.5.3

Documentation


Byte-level modern Javascript utilities, supporting ESM, CommonJS, and Tree Shaking

NPM Version NPM Version Follow @mastercorg Github release actions


Cross-platform

Object
  • extend — Deeply extend objects ~380B
Is

Node.js

Module
  • cross import — Import .ts, .mjs, .cjs files across environments as JavaScript modules
File System
  • fs — A human-friendly file system with glob patterns
Package.json

Recommendation

Some of the above node utilities use these well-known packages to improve your development experience, including built-in error handling, cross-platform compatibility, and shared logic to reduce code:

  • upath — A drop-in replacement / proxy to nodejs's path to improve reliability
  • fs-extra — Node.js: extra methods for the fs object like copy(), remove(), mkdirs() for better DX
  • fast-glob — It's a very fast and efficient glob library for Node.js

NPM Version