@progfay/scrapbox-parser
v9.1.5
Published
parse Scrapbox notation to JavaScript Object
Downloads
652
Readme
Scrapbox Parser
parse Scrapbox notation to JavaScript Object
Installation
$ npm i @progfay/scrapbox-parser
Also, you can install @progfay/scrapbox-parser
via JSR.
Usage
import { parse } from "@progfay/scrapbox-parser";
const PROJECT_NAME = "help";
const PAGE_NAME = "syntax";
fetch(`https://scrapbox.io/api/pages/${PROJECT_NAME}/${PAGE_NAME}/text`)
.then((response) => response.text())
.then((text) => parse(text));