@progfay/scrapbox-parser-stream
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

Scrapbox Parser Stream

Parsing Scrapbox notation with Node.js Stream

Installation

$ npm i @progfay/scrapbox-parser-stream

Usage

import ScrapboxParserStream from '@progfay/scrapbox-parser-stream'
import fetch from 'node-fetch'

const PROJECT_NAME = 'help'
const PAGE_NAME = 'syntax'

fetch(`https://scrapbox.io/api/pages/${PROJECT_NAME}/${PAGE_NAME}/text`)
	.then(({ body }) => {
		body
			.pipe(new ScrapboxParserStream({ hasTitle: true }))
			.pipe(process.stdout)
	})

/@progfay/scrapbox-parser-stream/

    Package Sidebar

    Install

    npm i @progfay/scrapbox-parser-stream

    Weekly Downloads

    1

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    27.3 kB

    Total Files

    42

    Last publish

    Collaborators

    • progfay