{"library":"detect-conflict","type":"library","category":null,"description":"detect-conflict is a focused utility library designed to determine if new content for a file can be safely merged with an existing file on disk without introducing conflicts. It achieves this by performing a content-based comparison, returning `true` if a conflict is detected and `false` otherwise. The current stable version is 1.0.1. As a specialized utility, its release cadence is generally slow, with updates primarily addressing bug fixes or minor enhancements rather than frequent new features. It differentiates itself by providing a simple, direct API for conflict *detection* rather than full merging capabilities, making it suitable for use cases like code generators, scaffolding tools, or deployment scripts that need to prevent overwriting user modifications.","language":"javascript","status":"active","version":"1.0.1","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install detect-conflict","imports":["import conflict from 'detect-conflict';","const conflict = require('detect-conflict');","/// <reference types=\"detect-conflict\" />"]},{"cmd":"yarn add detect-conflict","imports":[]},{"cmd":"pnpm add detect-conflict","imports":[]}],"homepage":null,"github":"https://github.com/SBoudrias/detect-conflict","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/detect-conflict","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/detect-conflict/compatibility"}}