Skip to content
Scrapbox notation → JavaScript Object
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
tests
.eslintignore
.eslintrc.js
.gitignore
.travis.yml
LICENSE
README.md
jest.config.js
package-lock.json
package.json
tsconfig.cjs.json
tsconfig.eslint.json
tsconfig.esm.json
tsconfig.json
tsconfig.umd.json
webpack.config.js

README.md

Scrapbox Parser

MIT License JavaScript Style Guide npm version Build Status Coverage Status Maintainability

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))
You can’t perform that action at this time.