{"library":"file-utils","type":"library","category":null,"description":"file-utils is a Node.js library offering a set of synchronous file system utilities, derived from Grunt.file. It is primarily designed for command-line interface tools and user utilities, with explicit warnings against its use in Node.js server environments due to its blocking I/O nature. The package enables the creation of scoped file environments (`createEnv`) that automatically prefix paths for file operations, providing isolated contexts for managing files. It also supports \"write filters\" and \"validation filters\" which can modify file content/paths or control write actions, respectively. Filters can be asynchronous, which subsequently makes the `write` and `copy` methods asynchronous. The current stable version is 0.2.2, with its latest release focusing on internal cleanup and import performance improvements. Its release cadence is infrequent, and major changes between 0.1.x and 0.2.x primarily involved Node.js version support and the handling of file content types within filters.","language":"javascript","status":"maintenance","version":"0.2.2","tags":["javascript","file","fs","utils","util","scaffold","tool","cli"],"last_verified":"Wed May 27","install":[{"cmd":"npm install file-utils","imports":["const fileUtils = require('file-utils');","const fileUtils = require('file-utils');\nconst env = fileUtils.createEnv({ base: './temp' });","env.write('path/to/file.txt', 'content');"]},{"cmd":"yarn add file-utils","imports":[]},{"cmd":"pnpm add file-utils","imports":[]}],"homepage":null,"github":"https://github.com/SBoudrias/file-utils","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/file-utils","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/file-utils/compatibility"}}