@tosuke/scrapbox-parser
v4.0.0-0
Published
parse Scrapbox notation to JavaScript Object
Downloads
5
Readme
Scrapbox Parser
parse Scrapbox notation to JavaScript Object
Installation
$ npm i @progfay/scrapbox-parser
Usage
import { parse } from '@progfay/scrapbox-parser'
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(response => response.text())
.then(text => parse(text))