Giter Club home page Giter Club logo

snappet's Introduction

snappet

store, manage and switch between your config settings easily

GitHub license npm version Build Downloads

Example

๐Ÿ”จ Install

You can install snappet through npx:

$ npx snappet <command> [options]

Note: Make sure you are using npm versions 16 and above for proper compatibility.

โšก Usage

snappet simplifies the process of storing and managing your settings with snapshots - saved states of a file stored locally that can be accessed at any time. This approach can be particularly useful for managing config files, where switching between different settings is common.

Add

Start by adding a snapshot with the add command:

$ snappet add myOldConfig utils.lua

You can add more than one filepath:

$ snappet add myNewConfig plugins.lua utils.lua

snappet saves the current state of those files and stores them locally.

List

In order to see all your saved snapshots, use the list command:

$ snappet list
Saved snapshots:
    - myOldConfig: utils.lua
    - myNewConfig: plugins.lua, utils.lua

Switch

If you want to switch between saved snapshots, use the switch command:

$ snappet switch myOldConfig
Switched to myOldConfig
  Files affected:
    - utils.lua

Switching snapshots restores files to the saved state of the selected snapshot. For any cosmetic changes to take place, a terminal restart is required.

Remove

In case you want to remove a snapshot, use the remove command:

$ snappet remove myNewConfig

You can also remove all snapshots with the --all flag.

$ snappet remove --all

โ— Disclaimer

Please be aware that snappet is not designed as a backup solution for important files and documents. All data is saved in a local snapshots.json file.

๐Ÿšง Contributing

Any contributions to this project are appreciated. If you have any ideas/suggestions/bug fixes, please open an issue or a pull request. If you like the project, mind giving it a star on Github.

๐Ÿ“‘ License

This package is licensed under the MIT license.

snappet's People

Contributors

ad4mx avatar

Stargazers

Marie N avatar Towhidul Islam avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.