massCode-Importer is a command-line tool designed to simplify the process of importing code snippets from your GitHub Gists into massCode, a lightweight and cross-platform code snippet manager.
This tool converts your Gists into massCode-compatible snippets and tags for easy organization and access.
- Import code snippets from GitHub Gists into massCode.
- Automatically create tags based on the hashtags in your Gist descriptions.
- Convert Gist files into massCode snippet content.
- Organize and manage your code snippets efficiently in massCode.
Before you begin, make sure you have the following prerequisites installed on your system:
- Clone the repository:
git clone https://github.com/pauloeli/massCode-Importer.git- Change to the project's directory:
cd massCode-Importer- Install the required dependencies using npm or yarn:
npm install
# or
yarn installTo use massCode-Importer, follow these steps:
-
Make sure you have set up your GitHub Gists with the necessary code snippets and descriptions.
-
Create a
.envfile in the project directory and add your GitHub token:
GITHUB_TOKEN=your_github_token_here
GITHUB_USERNAME=your_github_username_hereReplace your_github_token_here with your GitHub personal access token and your_github_username_here with your
GitHub username. Fallow this link to create the Classic Token. Select the gist
scope.
- Run the importer:
node --require ts-node/register src/app.tsThe importer will fetch your GitHub Gists, convert them into massCode-compatible format, and create JSON files for tags and snippets.
-
Once the process is complete, you'll find two JSON files generated in the project directory:
tags.jsonandsnippets.json. -
Open massCode and import these JSON files to organize and manage your code snippets.
Contributions are welcome! If you have any suggestions, find a bug, or want to add a feature, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.