snappet

0.0.2 • Public • Published

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.

Package Sidebar

Install

npm i snappet

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

23 kB

Total Files

12

Last publish

Collaborators

  • ad4mx