{"library":"replace-in-file","type":"library","category":null,"description":"Replace In File is a JavaScript/TypeScript utility for programmatic and CLI-based text replacement within one or more files. Currently at version 8.4.0, it provides both asynchronous (Promise-based) and synchronous APIs, supporting glob patterns for file selection. The library facilitates simple string replacements, complex regular expression substitutions, and handling of multiple replacements with distinct options. Its release cadence includes major version bumps that introduce breaking changes, notably affecting the return value structure. Key differentiators include its flexibility in handling various replacement scenarios, support for custom file system APIs, and a dry-run mode, making it suitable for build scripts, content transformation, and general file manipulation tasks in Node.js environments.","language":"javascript","status":"active","version":"8.4.0","tags":["javascript","replace","text","contents","file","typescript"],"install":[{"cmd":"npm install replace-in-file","imports":["import { replaceInFile } from 'replace-in-file'","import { replaceInFileSync } from 'replace-in-file'"]},{"cmd":"yarn add replace-in-file","imports":[]},{"cmd":"pnpm add replace-in-file","imports":[]}],"homepage":null,"github":"https://github.com/adamreisnz/replace-in-file","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/replace-in-file","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/replace-in-file/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}