keep2md
is a script designed to facilitate the conversion of Google Keep notes into markdown files.
- Generates multiple markdown files;
- Automatically renames duplicate files to avoid conflicts.
- Node.js version 21.5.0 or higher.
- NPM version 10.2.4 or higher.
To get started, follow these simple steps:
git clone https://github.com/luisfuturist/keep2md.git
cd keep2md/
npm install
- A Google Service account is required for authorization. Create Service Account Key page.
- Remember to configure the
keep2md.config.js
file according to your needs. - Title Constraints: Unfortunately,
keep2md
does not support notes with empty titles.
-
Select and copy the desired Google Keep notes to a new Google Doc. Click "Copy to Google Docs" to transfer the selected notes into a single document.
-
Create a file named
.env
in the project directory if it doesn't exist. -
Obtain the document ID from the Google Doc URL.
-
Add the following lines to the
.env
file, replacing<id>
with the copied document ID and .json with your actual service account key file name.DOCUMENT_ID=<id> GOOGLE_SERVICE_ACCOUNT_KEY_FILE_PATH="secrets/<>.json"
-
Add your Google Service account as reader to the document.
-
Run the script: npm run start to begin the conversion process.