New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

clider-sync

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clider-sync

A simple utility to keep `CONVENTIONS.md` and `.clinerules` files in sync within a project directory.

latest
npmnpm
Version
1.0.4
Version published
Maintainers
1
Created
Source

clider-sync

A simple utility to keep CONVENTIONS.md and .clinerules files in sync within a project directory.

Aider uses CONVENTIONS.md (as a convention) and Cline uses .clinerules. If you use both Aider and Cline, you might want to keep them in sync.

This package is designed to help maintain consistency between a human-readable CONVENTIONS.md file (which might contain project conventions, guidelines, or rules) and a machine-readable .clinerules file (potentially used by tools or linters).

The file that was more recently modified will be used to update or create the other file.

How it Works

The script performs the following actions in the current working directory:

  • Checks for files: It looks for CONVENTIONS.md (case-insensitively) and .clinerules.
  • Handles missing files:
    • If neither file exists, it exits with a message.
    • If only CONVENTIONS.md exists, it creates .clinerules and copies the content from CONVENTIONS.md.
    • If only .clinerules exists, it creates CONVENTIONS.md and copies the content from .clinerules.
  • Syncs existing files:
    • If both files exist, it compares their content.
    • If the content is different, it checks the modification time of each file.
    • The file with the older modification time is updated with the content of the newer file.
    • If modification times are the same, it defaults to updating .clinerules with the content of CONVENTIONS.md.
    • If the content is the same, it exits with a message indicating the files are already in sync.

Installation

npm install clider-sync

or

pnpm install clider-sync

Usage

To run manually:

npx clider-sync

Or if installed globally:

clider-sync

FAQs

Package last updated on 17 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts