
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@subhamx/notion-to-ebook
Advanced tools
Notion to ebook is a lightweight library to convert notion document consisting of multiple nested documents or databases into an ebook format like PDFs, with the table of contents, page cover, headers etc.
Notion to Ebook is a lightweight library written in Typescript to convert any notion document consisting of multiple nested documents or databases into an ebook format like PDFs, with the table of contents, page cover, headers etc.
This application requires Zero Configuration. The current implementation does most things like arranging all the files as chapters and generating the Table of Contents, cover page, footer, etc.
There are two modes to use this application:
Standalone mode: It allows users to generate a separate PDF for each of the HTML pages. For example, if your notion exports have a total of 12 pages (including all nested docs, tables etc.), then there will be precisely 12 PDFs generated for each one of them. You can find the exported merged file inside session_files/output/merged.
Merge mode: It allows users to generate a single PDF for the entire export. It concatenates each of the notion pages smartly to generate a single document. Table of contents of the whole document is also included at the beginning to ease browsing across the different sections of the merged PDF. You can find the exported standalone files inside session_files/output/standalone.
Please note that in merge mode all documents not linking to any other document at the current level are placed before the documents linking to other ones.
npm install @subhamx/notion-to-ebook
The usage is pretty straightforward.
import { buildStandaloneDocs } from '@subhamx/notion-to-ebook';
const token_v2="YOUR_NOTION_TOKEN_V2";
const pageId= "NOTION_PAGE_ID";
buildStandaloneDocs(token_v2, pageId);
import { buildMergedDoc } from '@subhamx/notion-to-ebook';
const token_v2="YOUR_NOTION_TOKEN_V2";
const pageId= "NOTION_PAGE_ID";
buildMergedDoc(token_v2, pageId);
Note: Whenever you call any of the instances of buildStandaloneDocs or buildMergedDoc. It removes all files inside the session_files. So please be cautious before starting the script.
We will export this Notion document, which is a full-page database and has four documents inside it.
Please note that Notion doesn't allow us to export all of these documents as PDFs in one go without the enterprise plan.
It's Great, isn't it? 🎉
This project welcomes contributions and suggestions. Feel free to report bugs and suggest features. It will help us improve this project. ⚡⚡
FAQs
Notion to ebook is a lightweight library to convert notion document consisting of multiple nested documents or databases into an ebook format like PDFs, with the table of contents, page cover, headers etc.
The npm package @subhamx/notion-to-ebook receives a total of 0 weekly downloads. As such, @subhamx/notion-to-ebook popularity was classified as not popular.
We found that @subhamx/notion-to-ebook demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.