Skip to content

A command line utility to clean up the Markdown exports of Notion.

License

Notifications You must be signed in to change notification settings

DarkSkyT9A/notion-export-cleaner

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

notion-export-cleaner

A command line utility to clean up the Markdown exports of Notion.

Installation

To install notion-export-cleaner, run the following command in your terminal:

git clone https://github.com/sebastianwilczek/notion-export-cleaner
cd notion-export-cleaner
npm install

Usage

To use notion-export-cleaner, export your Notion space to Markdown & CSV and run the following command in the notion-export-cleaner directory:

node notion-markdown-cleaner.js /path/to/your/notion/markdown/export/directory /path/to/your/destination/directory

The first argument is the path to the directory containing the Markdown files exported from Notion. The second argument is the path to the directory where the cleaned up Markdown files should be stored.

notion-export-cleaner will create a new directory in the destination directory, containing the cleaned up Markdown files. It will iterate over all CSV files, parsing them into a Markdown table and replacing the "Name" column with a link to the corresponding Markdown file. It will also replace all links to other pages in the Notion space with links to the corresponding Markdown files. In general, filenames are cleaned up to not use the IDs generated by Notion, but instead use the names of the pages.

About

A command line utility to clean up the Markdown exports of Notion.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%