SSPM is a command-line tool built in Node.js specifically designed for simplifying the import and management of SPWN libraries. It streamlines the process of accessing libraries directly from the MucciDev/SSPM/libraries repository.
- Library Import: Seamlessly download and import SPWN libraries from the SSPM repository.
- Custom Path Configuration: Easily set a personalized path for efficient library storage.
- User-friendly CLI: Intuitive command-line interface for convenient library management.
- Configurable Library Storage: Ability to store and organize downloaded libraries with ease.
- Interactive Library Importing: Select and import multiple libraries interactively.
- Real-time Progress Tracking: Display of live download progress for imported libraries.
- Error Handling: Robust error handling for library retrieval and import processes.
- Clone or download the repository to your local machine.
- Install the required dependencies by executing
npm install
. - Use
node sspm.js -s path <custom-path>
to set a personalized path for library storage.
When first initialized it will ask to establish a custom path for library storage:
Enter path for libraries folder: <path>
After the first time it will prompt the user every time with:
Use the last used path 'path'? (y/n):
To import a library, utilize the following command:
sspm import <library-name>
To import multiple libraries simply do:
sspm import <library-name> <other-library-name>
Replace <library-name>
with the desired library name for import.
sspm import myLibrary
The tool stores the last used path for library storage in a config.json
file within the SSPM directory.
Contributions and suggestions are encouraged! Please feel free to open issues or pull requests to propose changes or report any encountered bugs.