🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

affine-reader

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

affine-reader

A simple reader for the blocksuite format

latest
npmnpm
Version
3.8.9-beta.0
Version published
Maintainers
1
Created
Source

affine-reader

This is a simple reader for the blocksuite YJS doc format. The main goal right now is to convert a random YJS doc into a markdown file.

Install

pnpm install affine-reader

Usage

The following will create a reader for a workspace and then get all the pages in that workspace. Page markdown is available in .md property.

const { getBlocksuiteReader } = require('affine-reader');

const reader = await getBlocksuiteReader({ workspaceId: 'workspace-id' })
const pages = await reader.getWorkspacePages(true);

FAQs

Package last updated on 15 May 2025

Did you know?

Socket

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.

Install

Related posts