npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

abhi-version-control

v1.4.0

Published

A simple file version control system

Downloads

2

Readme

Abhi Version Control

A simple and efficient file version control system designed to manage versions of entire directories and track changes with Delta for efficient versioning. Ideal for developers, writers, and anyone needing straightforward version control for directories.

Table of Contents

  1. Introduction
  2. Installation
  3. Usage
  4. Examples
  5. Features
  6. Contributing
  7. License

Introduction

Abhi Version Control provides an easy-to-use interface for managing versions of entire directories. It supports committing new versions, viewing history, restoring specific versions, and comparing different versions using Delta for efficient versioning and comparison.

Installation

You can install Abhi Version Control globally using npm:

npm install -g abhi-version-control

This command makes the abhi command available globally on your system.

Usage

Commands

  • Commit a New Version

    Use this command to commit a new version of a directory:

    abhi commit <dirPath> --message "Your commit message"
    • <dirPath>: The path to the directory you want to version.
    • --message: Optional commit message describing the changes.
  • View Version History

    Use this command to view the history of a directory:

    abhi log <dirPath>
    • <dirPath>: The path to the directory whose history you want to view.
  • Restore a Specific Version

    Use this command to restore a specific version of a directory:

    abhi checkout <dirPath> --version <versionName>
    • <dirPath>: The path to the directory you want to restore.
    • --version: The specific version of the directory to restore.
  • List Available Backups

    Use this command to list all available backups:

    abhi tag
  • Restore from a Backup

    Use this command to restore a directory from a backup:

    abhi restore <backupName> <dirPath>
    • <backupName>: The name of the backup to restore from.
    • <dirPath>: The path to the directory to restore.

Examples

Committing a New Version

To commit a new version of the directory exampleDir with a message:

abhi commit exampleDir --message "Updated documentation and fixed bugs"

Viewing Directory History

To view the history of exampleDir:

abhi log exampleDir

Restoring a Specific Version

To restore a previous version of exampleDir:

abhi checkout exampleDir --version exampleDir_1624416384316

This will replace the current version of exampleDir with the specified version.

Listing Available Backups

To list all available backups:

abhi tag

Restoring from a Backup

To restore exampleDir from a backup named backup_20240915:

abhi restore backup_20240915 exampleDir

This will show the differences between the specified versions of the file within the directory.

Features

  • Version Management: Save different versions of directories with timestamps and commit messages.
  • File History: View the history of changes made to directories, including commit messages.
  • Retrace Versions: Restore any previous version of a directory, allowing easy reversion to earlier states.
  • Backup and Restore: List and restore from backups to safeguard your data.
  • Simple CLI: Use straightforward commands to manage directory versions, view history, restore previous versions, and compare file versions.

Contributing

We welcome contributions to enhance the functionality of Abhi Version Control. If you have suggestions or improvements, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Commit your changes and push the branch to your fork.
  4. Open a pull request with a description of your changes.

Please ensure that your code adheres to the project’s coding standards and includes relevant tests.

License

This project is licensed under the ISC License - see the LICENSE file for details.