build-utils is a JavaScript library offering a collection of utility functions primarily designed for build scripts. It encapsulates common operations across file system manipulation (`fs`), process execution (`process`), configuration updates (`config`), object transformations (`object`), and command-line interface (`cli`) helpers. The current stable version is 2.0.12, but it was last published on npm approximately eight years ago (August 2018). Due to its age, it primarily uses the CommonJS module system and is not actively maintained, meaning there are no new features, bug fixes, or security updates. It serves as a straightforward, albeit outdated, toolkit for basic automation tasks, lacking the modern features or dual ESM/CJS support found in contemporary alternatives.
npm install build-utilsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates basic file system operations (create, write, delete) and process execution using `build-utils` in a CommonJS Node.js environment.
Evaluate actively maintained build utility libraries or implement functionalities using Node.js's native `fs`, `child_process`, and `path` modules.
Ensure your project is configured for CommonJS, or use `require()` statements within a CJS-compatible file. For ESM projects, consider modern dual-module libraries.
Test thoroughly on your target Node.js version. If issues arise, direct replacement with Node.js built-ins or newer libraries is recommended.
Verify glob patterns rigorously, especially for complex scenarios. If discrepancies are found, consider using a dedicated and maintained globbing library in conjunction with this package or as a replacement.
Change your file's extension to `.cjs` or ensure your `package.json` specifies `"type": "commonjs"`. Alternatively, use dynamic `import()` for CJS modules within ESM, but be aware of potential interoperability complexities.
Ensure you are correctly accessing utilities under their respective namespaces (e.g., `require('build-utils').fs.createDirectory`). Verify the exact function name and nesting from the package's source or documentation.Check that the command you are trying to execute (`ls`, `git`, `npm`, etc.) is installed and accessible in the system's PATH environment variable. Provide the full path to the executable if it's not globally available.
No dependency data recorded yet.