Skip to content

takker99/scrapbox-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scrapbox Parser

MIT License npm version Build Status Maintainability Test Coverage

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

About

Scrapbox notation → JavaScript Object

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • TypeScript 96.8%
  • JavaScript 3.2%