Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@progfay/scrapbox-parser

4.0.0-1 • Public • Published

Scrapbox Parser

MIT License JavaScript Style Guide npm version Build Status Coverage Status Maintainability

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))

Install

npm i @progfay/scrapbox-parser

DownloadsWeekly Downloads

15

Version

4.0.0-1

License

MIT

Unpacked Size

165 kB

Total Files

220

Last publish

Collaborators

  • avatar