This script import markdown notes to Notion.
The script required PostgresQL for local cache of imported notes.
-
Get
NOTION_TOKEN
and give access to your note where the data will be imported -
Run the script specifying the folder with notes
export NOTION_TOKEN 'secret_notion_token'
export DB_HOST 'localhost'
export DB_NAME 'notion'
export DB_USER 'notion'
export DB_PASSWORD 'notion-password'
node index.js --import /path/no/notes
- Some notes may not import correctly. Solutions
node index.js --show-errors
- After correcting the original notes that were imported with an error, they can be imported again
node index.js --import-with-errors /path/no/notes