Skip to content

benwerd/notion-links-to-blog-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Notion links to blog post

This node script takes a CSV export of a Notion link database and turns it into a markdown or HTML formatted blog post.

For now, it assumes that your database contains the following, in the following order:

  • Name: title of the page
  • Category: the type of link (eg "Notable Articles", "Books", etc)
  • Created: a timestamp representing the date you saved the link
  • Summary: a brief description of the link
  • Tags: a sub-category (eg "Business")
  • URL: the page URL

It will export to a file and also copy output to your clipboard.

Get started

Make sure you have node and npm installed.

Then: npm install

Usage

You can run this with node index.js input-file.csv > output.md

Optionally, include the parameter format set to html to output to an HTML file. For example:

node index.js input-file.csv --format=html > output.html

This script is also designed to be run directly and aliased from your bash profile. Once you give it execution rights, you can just run:

./index.js input.csv > output.md

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published