https://github.com/progfay/scrapbox-parser-stream
Parsing Scrapbox notation with Node.js Stream
https://github.com/progfay/scrapbox-parser-stream
node-stream parser scrapbox scrapbox-parser-stream
Last synced: 4 months ago
JSON representation
Parsing Scrapbox notation with Node.js Stream
- Host: GitHub
- URL: https://github.com/progfay/scrapbox-parser-stream
- Owner: progfay
- Created: 2019-12-29T16:39:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:26:48.000Z (over 2 years ago)
- Last Synced: 2025-03-18T05:40:43.512Z (4 months ago)
- Topics: node-stream, parser, scrapbox, scrapbox-parser-stream
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@progfay/scrapbox-parser-stream
- Size: 836 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Scrapbox Parser Stream
Parsing Scrapbox notation with Node.js Stream
## Installation
```sh
$ npm i @progfay/scrapbox-parser-stream
```## Usage
```js
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)
})
```