https://github.com/progfay/scrapbox-parser
Scrapbox notation → JavaScript Object
https://github.com/progfay/scrapbox-parser
nodejs parser scrapbox typescript
Last synced: 8 months ago
JSON representation
Scrapbox notation → JavaScript Object
- Host: GitHub
- URL: https://github.com/progfay/scrapbox-parser
- Owner: progfay
- License: mit
- Created: 2019-06-20T06:35:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-05-05T13:57:51.000Z (8 months ago)
- Last Synced: 2025-05-05T14:53:31.356Z (8 months ago)
- Topics: nodejs, parser, scrapbox, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@progfay/scrapbox-parser
- Size: 9.75 MB
- Stars: 94
- Watchers: 4
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
# Scrapbox Parser
[](LICENSE)
[](https://www.npmjs.com/package/@progfay/scrapbox-parser)
[](https://codeclimate.com/github/progfay/scrapbox-parser/maintainability)
[](https://codeclimate.com/github/progfay/scrapbox-parser/coverage)
parse Scrapbox notation to JavaScript Object
## Installation
```sh
$ npm i @progfay/scrapbox-parser
```
Also, you can install `@progfay/scrapbox-parser` via [JSR](https://jsr.io/@progfay/scrapbox-parser).
## Usage
```js
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));
```