@progfay/scrapbox-parser
TypeScript icon, indicating that this package has built-in type declarations

9.1.5 • Public • Published

Scrapbox Parser

MIT License npm version Maintainability Test Coverage

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

Dependents (4)

Package Sidebar

Install

npm i @progfay/scrapbox-parser

Weekly Downloads

706

Version

9.1.5

License

MIT

Unpacked Size

52.4 kB

Total Files

66

Last publish

Collaborators

  • progfay