Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score100%
Downloads126/wk
Published4 months ago (10.1.1)

Scrapbox notation → JavaScript Object

Scrapbox Parser

MIT License npm version JSR version

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));
Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@progfay/scrapbox-parser

Import symbol

import * as scrapbox_parser from "@progfay/scrapbox-parser";
or

Import directly with a jsr specifier

import * as scrapbox_parser from "jsr:@progfay/scrapbox-parser";