Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/progfay/scrapbox-parser
Scrapbox notation → JavaScript Object
https://github.com/progfay/scrapbox-parser
nodejs parser scrapbox typescript
Last synced: 19 days 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 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-30T14:34:26.000Z (8 months ago)
- Last Synced: 2024-05-01T15:44:51.471Z (8 months ago)
- Topics: nodejs, parser, scrapbox, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@progfay/scrapbox-parser
- Size: 9.91 MB
- Stars: 82
- Watchers: 3
- Forks: 10
- Open Issues: 2
-
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
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge&color=AC1500&labelColor=222222)](LICENSE)
[![npm version](https://img.shields.io/npm/v/@progfay/scrapbox-parser?style=for-the-badge&message=NPM&color=CB3837&logo=NPM&labelColor=222222&label=npm)](https://www.npmjs.com/package/@progfay/scrapbox-parser)
[![Maintainability](https://img.shields.io/codeclimate/maintainability/progfay/scrapbox-parser?style=for-the-badge&message=Code+Climate&labelColor=222222&logo=Code+Climate&logoColor=FFFFFF)](https://codeclimate.com/github/progfay/scrapbox-parser/maintainability)
[![Test Coverage](https://img.shields.io/codeclimate/coverage/progfay/scrapbox-parser?style=for-the-badge&message=Code+Climate&labelColor=222222&logo=Code+Climate&logoColor=FFFFFF)](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));
```