JSPM

  • Created
  • Published
  • Downloads 311
  • Score
    100M100P100Q113786F
  • License MIT

parse Scrapbox notation to JavaScript Object

Package Exports

  • @progfay/scrapbox-parser

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@progfay/scrapbox-parser) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Scrapbox Parser

MIT License JavaScript Style Guide npm version Build 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))