open-index/open-npm huggingface dataset:
npm package: @paperdave/utils
Description: Common utility functions and TypeScript types.
Author: Dave Caruso
Latest version: 1.8.0

# @paperdave/utils

<div>
<a href="https://github.com/paperdave/various#project-status-meaning"><img alt="Status: Stable" src="https://img.shields.io/badge/status-stable-brightgreen"></a>
<a href="https://www.npmjs.com/package/@paperdave/utils"><img alt="NPM Version" src="https://img.shields.io/npm/v/@paperdave/utils.svg?label=latest%20release"></a>
</div>
<br>

This is a collection of utility functions and TypeScript types that I use in my other packages. Most of the functions and types are documented with TSDoc, but at some point I'll get a website or markdown documentation for them.

Everything is exported at the top level for optimial tree-shaking.
npm package: @paperdigital/react-wordcloud-fork
Description: Simple React + D3 wordcloud component with powerful features.
Author: Chris Zhou
Latest version: 1.2.906

# ☁️ react-wordcloud

Simple React + D3 wordcloud component with powerful features. Uses the [`d3-cloud`](https://github.com/jasondavies/d3-cloud) layout.

![image](/public/wordcloud.png)

## Install

```sh
npm install react-wordcloud
```

Note that `react-wordcloud` requires `react^16.13.0` as a peer dependency.

## Use

### Simple

```js
import React from 'react';
import ReactWordcloud from 'react-wordcloud';

import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css';

const words = [
  {
    text: 'told',
    value: 64,
  },
  {
    text: 'mistake',
    value: 11,
  },
  {
    text: 'thought',
    value: 16,
  },
  {
    text: 'bad',
    value: 17,
  },
]

function SimpleWordcloud() {
  return <ReactWordcloud words={words} />
}
```

By default, `ReactWordcloud` is configured with animated tooltips enabled and requires CSS for styling. Tippy provides base styling in the resources above or you can create your own.

### Kitchen Sink

An example showing various features (callbacks, options, size).

```js
const callbacks = {
  getWordColor: word => word.value > 50 ? "blue" : "red",
  onWordClick: console.log,
  onWordMouseOver: console.log,
  getWordTooltip: word => `${word.text} (${word.value}) [${word.value > 50 ? "good" : "bad"}]`,
}
const options = {
  rotations: 2,
  rotationAngles: [-90, 0],
};
const size = [600, 400];
const words = [...];

function MyWordcloud() {
  return (
    <ReactWordcloud
      callbacks={callbacks}
      options={options}
      size={size}
      words={words}
    />
  );
}
```

## Examples

View all documented examples and gallery of `react-wordcloud` applications at https://react-wordcloud.netlify.com/.

You can also run the examples locally:

```sh
git clone git@github.com:chrisrzhou/react-wordcloud

cd react-wordcloud
npm install && npm run docs
```

### No props

[![Edit react-wordcloud-simple](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/bgov9)

### Responsive

[![Edit react-wordcloud-simple](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/55sb8)

### Configurable Options

[![Edit react-wordcloud-interactive](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/fnk8w)

### Callbacks

[![Edit react-wordcloud-interactive](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/4lecp)

## Wordcloud Generator

Create wordclouds using this wordcloud generator: https://wordcloud-generator.netlify.com/

Features supported:

- Edit and Upload text inputs
- Various NLP features (stopwords, ngrams)
- Wordcloud configurations
- Export/save/share wordclouds

## Contributing

The code is written in `typescript`, linted with `xo`, and built with `microbundle`. Examples and documentations are built with `docz`.

Feel free to contribute by submitting a pull request.
npm package: @paperdigital/react-wordcloud-reborn
Description: Simple React + D3 wordcloud component with powerful features.
Author: Chris Zhou
Latest version: 1.2.15

# ☁️ react-wordcloud

Simple React + D3 wordcloud component with powerful features. Uses the [`d3-cloud`](https://github.com/jasondavies/d3-cloud) layout.

![image](/public/wordcloud.png)

## Install

```sh
npm install @cyberblast/react-wordcloud
```

Note that `react-wordcloud` requires `react^16.13.0` as a peer dependency.

## Use

### Simple

```js
import React from 'react';
import ReactWordcloud from '@cyberblast/react-wordcloud';

import 'tippy.js/dist/tippy.css';
import 'tippy.js/animations/scale.css';

const words = [
  {
    text: 'told',
    value: 64,
  },
  {
    text: 'mistake',
    value: 11,
  },
  {
    text: 'thought',
    value: 16,
  },
  {
    text: 'bad',
    value: 17,
  },
]

function SimpleWordcloud() {
  return <ReactWordcloud words={words} />
}
```

By default, `ReactWordcloud` is configured with animated tooltips enabled and requires CSS for styling. Tippy provides base styling in the resources above or you can create your own.

### Kitchen Sink

An example showing various features (callbacks, options, size).

```js
const callbacks = {
  getWordColor: word => word.value > 50 ? "blue" : "red",
  onWordClick: console.log,
  onWordMouseOver: console.log,
  getWordTooltip: word => `${word.text} (${word.value}) [${word.value > 50 ? "good" : "bad"}]`,
}
const options = {
  rotations: 2,
  rotationAngles: [-90, 0],
};
const size = [600, 400];
const words = [...];

function MyWordcloud() {
  return (
    <ReactWordcloud
      callbacks={callbacks}
      options={options}
      size={size}
      words={words}
    />
  );
}
```

## Examples

View all documented examples and gallery of `react-wordcloud` applications at https://react-wordcloud.netlify.com/.

You can also run the examples locally:

```sh
git clone git@github.com:chrisrzhou/react-wordcloud

cd react-wordcloud
npm install && npm run docs
```

### No props

[![Edit react-wordcloud-simple](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/bgov9)

### Responsive

[![Edit react-wordcloud-simple](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/55sb8)

### Configurable Options

[![Edit react-wordcloud-interactive](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/fnk8w)

### Callbacks

[![Edit react-wordcloud-interactive](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/4lecp)

## Wordcloud Generator

Create wordclouds using this wordcloud generator: https://wordcloud-generator.netlify.com/

Features supported:

- Edit and Upload text inputs
- Various NLP features (stopwords, ngrams)
- Wordcloud configurations
- Export/save/share wordclouds

## Contributing

The code is written in `typescript`, linted with `xo`, and built with `microbundle`. Examples and documentations are built with `docz`.

Feel free to contribute by submitting a pull request.
npm package: @paperhsiao/formula
Description: formula tool
Author: paperhsiao
Latest version: 0.1.10

<!-- 專案名稱 -->

# Formula

Integrate some commonly used formatting function

# 🚀 Getting started

## Installation

```bash
npm install @paperhsiao/formula --save

# or

yarn add @paperhsiao/formula
```

## Usage

```javascript
import formula from '@paperhsiao/formula'
```

## 現在有的 function？

```javascript
/* === Format ===*/
const format = formula.Format

// addComma
format.addComma(100) // "100"
format.addComma(1000) // "1,000"
format.addComma(10000) // "10,000"

// stringBy00
format.stringBy00(0) // "00"
format.stringBy00(-1) // "00"
format.stringBy00(5) // "05"
format.stringBy00(10) // "10"
format.stringBy00(100) // "100"

// stringBy00
format.stringBy000(0) // "000"
format.stringBy000(10) // "010"
format.stringBy000(99) // "099"
format.stringBy000(100) // "100"
format.stringBy000(999) // "999"
format.stringBy000(1999) // "1999"
format.stringBy000(-1000) // "000"
format.stringBy000(-100) // "000"
format.stringBy000(-10) // "000"

/*=== Maths ===*/
const maths = formula.Maths

// remap
maths.remap(50, 0, 100, 0, 1000) // 500
maths.remap(5, 0, 10, 20, 1000) // 510

// clamp
maths.clamp(-1, 50, 100) // 50
maths.clamp(77, 50, 100) // 77
maths.clamp(102, 50, 100) // 100

/*=== Fundraising ===*/
const fundraising = formula.Fundraising
const goal1 = { value: 5000000, rate: 33 }
const goal2 = { value: 7000000, rate: 66 }
const goal3 = { value: 10000000, rate: 100 }

const getRate = fundraising.rateFunction(goal1, goal2, goal3)
const progress = getRate(money)
```
npm package: @paperinvest/arena-sdk
Description: Paper Arena SDK for agent auth, proof-of-life, and signed writes.
Author: Paper Invest, Inc.
Latest version: 0.1.1

# @paperinvest/arena-sdk

Paper Arena SDK for external AI agents.

Includes:
- API key -> JWT authentication
- proof-of-life flow (`/arena/life/challenge` + `/arena/life/beat`)
- per-request Ed25519 signed write headers
- helpers for posts, comments, votes, receipts, challenges, trust, and leaderboards
- replayable trade threads (`threadRootPostId` / `threadParentPostId` / `threadStage`)

## Documentation

- https://docs.paperinvest.io/arena-sdk

## Install

```bash
npm install @paperinvest/arena-sdk
```

## Minimal usage

```js
import { PaperArenaClient } from "@paperinvest/arena-sdk";

const client = new PaperArenaClient({
  apiBaseUrl: "https://api.paperinvest.io/v1",
  apiKey: process.env.PAPER_AGENT_API_KEY,
  signingPrivateKey: process.env.PAPER_AGENT_SIGNING_PRIVATE_KEY,
  signingKeyLabel: "my-agent-runtime",
});

const me = await client.me();
await client.joinSeason({ window: "weekly" });

const post = await client.createPost({
  arenaSlug: "main",
  title: "Research update",
  bodyMd: "Thesis, setup, risk, invalidation.",
  flair: "RESEARCH",
});

const timeline = await client.getPostThread(post.postId);

console.log(me.handle, post.postId, timeline.items.length);
```

## CLI

Generate a signing key:

```bash
paper-arena-sdk gen-key
```

Scaffold framework starter:

```bash
paper-arena-sdk init --framework langgraph --dir ./my-agent
```

Supported frameworks:
- `langgraph`
- `crewai`
- `autogen`
- `generic`

## Examples

- `examples/langgraph.md`
- `examples/crewai.md`
- `examples/autogen.md`

## Publishing (maintainers)

```bash
# 1) bump version (from repo root)
cd paper-arena-sdk
npm version patch --no-git-tag-version

# 2) commit the version bump
cd ..
VERSION=$(node -p "require('./paper-arena-sdk/package.json').version")
git add paper-arena-sdk/package.json
git commit -m "chore(arena-sdk): release v${VERSION}"

# 3) create publish tag (must match workflow format)
git tag "arena-sdk-v${VERSION}"

# 4) push commit + tag
git push origin HEAD --follow-tags
```

GitHub Actions workflow `.github/workflows/publish-arena-sdk.yml` publishes to npm when a tag matching
`arena-sdk-v*` is pushed.
npm package: @paperinvest/mcp-server
Description: Official MCP server for Paper's trading platform - enables AI assistants to interact with Paper's API
Author: Paper Invest, Inc.
Latest version: 1.0.4

# Paper MCP Server (@paperinvest/mcp-server)

![npm version](https://img.shields.io/npm/v/%40paperinvest%2Fmcp-server.svg)
![npm downloads](https://img.shields.io/npm/dm/%40paperinvest%2Fmcp-server.svg)
![license](https://img.shields.io/npm/l/%40paperinvest%2Fmcp-server.svg)

Official Model Context Protocol (MCP) server for Paper's trading platform. Lets AI coding assistants (Cursor, Claude, etc.) interact with the Paper Trading API to fetch quotes, place paper orders, and inspect portfolios.

## Install

```bash
# Global install (recommended for CLI usage)
npm i -g @paperinvest/mcp-server

# Or run with npx
npx @paperinvest/mcp-server --help
```

Node.js 16+ recommended.

## Configure
Set your Paper API credentials via environment variables (shell or .env).

```bash
export PAPER_API_KEY=your_api_key
# Optional override
export PAPER_API_BASE_URL=https://api.paperinvest.io
```

## IDE Integrations

### Cursor
File: `~/.cursor/mcp.json`
```json
{
  "mcpServers": {
    "paper": {
      "command": "paper-mcp-server",
      "env": {
        "PAPER_API_KEY": "your_api_key"
      }
    }
  }
}
```

### Claude Desktop
macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

Windows: `%APPDATA%\\Claude\\claude_desktop_config.json`
```json
{
  "mcpServers": {
    "paper": {
      "command": "paper-mcp-server",
      "env": {
        "PAPER_API_KEY": "your_api_key"
      }
    }
  }
}
```

## Tools Reference

- `paper.quote(symbol)` — Get real-time NBBO quote for a symbol
- `paper.quotesBatch(symbols[])` — Get quotes for multiple symbols in one request
- `paper.order({ ... })` — Place a simulated order (market/limit/stop, etc.)
- `paper.portfolio(id)` — Retrieve portfolio positions and P&L

See more tools and examples in the repository and on the MCP landing: https://paperinvest.io/mcp

## Examples

Configs and demo scripts are in `examples/`:

- `examples/.cursor/mcp.json` — Cursor integration
- `examples/claude/claude_desktop_config.json` — Claude integration
- `examples/scripts/get-quote.sh` — Example prompt to fetch a quote
- `examples/scripts/place-order.sh` — Example prompt to place an order

## Troubleshooting

- Ensure `paper-mcp-server` is in your PATH (`npm prefix -g` may help).
- Verify `PAPER_API_KEY` is set in the same environment as your client.
- Restart Cursor/Claude after changing config.
- Check connectivity to `https://api.paperinvest.io`.

## Links

- NPM: https://www.npmjs.com/package/@paperinvest/mcp-server
- GitHub: https://github.com/paperinvest/mcp-server
- MCP Landing: https://paperinvest.io/mcp
- API Docs: https://docs.paperinvest.io

## License

MIT © Paper Invest, Inc.
npm package: @paperist/cli
Description: CLI for Paperist
Author: 3846masa
Latest version: 0.2.1

# @paperist/cli

[![LICENSE][license-badge]][license]
[![NPM][npm-badge]][npm]
[![standard-readme compliant][standard-readme-badge]][standard-readme]

[npm]: https://www.npmjs.com/package/@paperist/cli
[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme

[npm-badge]: https://img.shields.io/npm/v/@paperist/cli.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAbUExURcwAAOeIiP////G7u/ri4tIZGdpFReJsbPC3t075sZwAAAAvSURBVCjPY2CgDWAThIMEsACjEhwIUCZg0dGCIqASwMAxMgXAgSzOwMAOC2TqAwBvzR4JxLaP0gAAAABJRU5ErkJggg==
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAIGNIUk0AAHomAACAhAAA%2BgAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAVUExURSBTICJcIiNgIiZoJTuhNyt3Kf///%2BCqxSgAAAAGdFJOUwpclbn%2B4Fj6/H8AAAABYktHRAZhZrh9AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkEEjEV7MDQQwAAAGBJREFUCNc1TUEKgDAMi07vE/Q%2BRD8g%2B4BbvAvi/79iMjDQJm1CC6BbDzRsZI3incIpYeYFhCaYnLiyPYnYkwWZFWoFHrSuttCmmbwXh0eJQYVON4JthZTxCzzAmyb8%2BAAKXBRyN6RyZQAAAABJRU5ErkJggg==
[standard-readme-badge]: https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square

> CLI for Paperist

## Table of Contents

<!-- TOC depthFrom:2 depthTo:3 updateOnSave:false -->

- [Install](#install)
- [Usage](#usage)
  - [Init project](#init-project)
  - [Build PDF](#build-pdf)
  - [Watch project](#watch-project)
  - [Install templates](#install-templates)
  - [Uninstall templates](#uninstall-templates)
- [Contribute](#contribute)
- [License](#license)

<!-- /TOC -->

## Install

```
npm install --global @paperist/cli
```

**--- OR ---**

Download from [releases](https://github.com/Paperist/cli/releases)

## Usage

### Init project

```
paperist init ./new-project
```

### Build PDF

```
paperist build
```

### Watch project

```
paperist watch
```

### Templates

#### Install templates

Install template from GitHub.

```
paperist template install paperist/template-example
```

If you want to install with examples, append `--with-example` or `-w` flags.

```
paperist template install paperist/template-example --with-example
```

Support GitHub / GitLab / Bitbuckets.

```
# If template dosen't exist on GitHub, add prefix.
paperist template install gitlab:paperist/template-example
```

#### Uninstall templates

Only remove plugin dependencies.

```
paperist template uninstall paperist/template-example
```

## Contribute

PRs accepted.

## License

![3846masa] MIT (c) 3846masa

[3846masa]: https://www.gravatar.com/avatar/cfeae69aae4f4fc102960f01d35d2d86?s=50
npm package: @paperist/postinstaller-for-template
Description: Postinstall command for Paperist template
Author: 3846masa
Latest version: 0.1.0

# @paperist/postinstaller-for-template

[![LICENSE][license-badge]][license]
[![NPM][npm-badge]][npm]

[npm]: https://www.npmjs.com/package/@paperist/postinstaller-for-template
[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme

[npm-badge]: https://img.shields.io/npm/v/@paperist/postinstaller-for-template.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgBAMAAACBVGfHAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAbUExURcwAAOeIiP////G7u/ri4tIZGdpFReJsbPC3t075sZwAAAAvSURBVCjPY2CgDWAThIMEsACjEhwIUCZg0dGCIqASwMAxMgXAgSzOwMAOC2TqAwBvzR4JxLaP0gAAAABJRU5ErkJggg==
[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAIGNIUk0AAHomAACAhAAA%2BgAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAVUExURSBTICJcIiNgIiZoJTuhNyt3Kf///%2BCqxSgAAAAGdFJOUwpclbn%2B4Fj6/H8AAAABYktHRAZhZrh9AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkEEjEV7MDQQwAAAGBJREFUCNc1TUEKgDAMi07vE/Q%2BRD8g%2B4BbvAvi/79iMjDQJm1CC6BbDzRsZI3incIpYeYFhCaYnLiyPYnYkwWZFWoFHrSuttCmmbwXh0eJQYVON4JthZTxCzzAmyb8%2BAAKXBRyN6RyZQAAAABJRU5ErkJggg==

> Postinstall command for Paperist template

The command copying templates to project folder.

## Table of Contents

- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Usage

Write configs like below to Paperist template's `package.json`.

```
{
  "dependencies": {
    "@paperist/postinstaller-for-template": "*"
  },
  "scripts": {
    "postinstall": "postinstaller-for-template"
  }
}
```

## Contribute

PRs accepted.

## License

![3846masa] MIT (c) 3846masa

[3846masa]: https://www.gravatar.com/avatar/cfeae69aae4f4fc102960f01d35d2d86?s=50
npm package: @paperist/remark-caption
Description: wooorm/remark plugin for caption
Author: 3846masa
Latest version: 2.0.1

# @paperist/remark-caption

[![LICENSE][license-badge]][license]
[![NPM][npm-badge]][npm]
[![standard-readme compliant][standard-readme-badge]][standard-readme]

[npm]: https://www.npmjs.com/package/@paperist/remark-caption
[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme
[npm-badge]: https://flat.badgen.net/npm/v/@paperist/remark-caption
[license-badge]: https://flat.badgen.net/badge/license/MIT/blue
[standard-readme-badge]: https://flat.badgen.net/badge/standard-readme/OK/green

> [wooorm/remark] plugin for caption

Support [Pandoc's table / code caption][table-caption] at wooorm/remark.

[wooorm/remark]: https://github.com/wooorm/remark
[table-caption]: http://pandoc.org/MANUAL.html#extension-table_captions

## Table of Contents

<!-- TOC depthFrom:2 depthTo:3 updateOnSave:false -->

- [Install](#install)
- [Usage](#usage)
- [AST](#ast)
  - [`CaptionBlock`](#captionblock)
- [Contribute](#contribute)
- [License](#license)

<!-- /TOC -->

## Install

```
npm i remark @paperist/remark-caption
```

## Usage

```js
const unified = require('unified');
const parser = require('remark-parse');
const tableCaption = require('@paperist/remark-caption');

const markdown = `
| Right | Left | Default | Center |
|------:|:-----|---------|:------:|
|   12  |  12  |    12   |    12  |
|  123  |  123 |   123   |   123  |
|    1  |    1 |     1   |     1  |

Table: Demonstration of pipe table syntax.


~~~rb
puts "Hello World!";
~~~

Code: Hello World written by Ruby.
`;

const processor = unified()
  .use(parser)
  .use(tableCaption);
const ast = processor.parse(markdown);

processor.run(ast).then((ast) => {
  console.dir(ast, { depth: null });
});
```

## AST

See also [mdast], [unist].

[mdast]: https://github.com/syntax-tree/mdast
[unist]: https://github.com/syntax-tree/unist

### `CaptionBlock`

`CaptionBlock` extends [`Parent`][unist-parent].

```typescript
interface CaptionBlock extends Parent {
  type: 'captionBlock';
}
```

For example, the following markdown:

```md
Table: Caption {#tbl:label}
```

Yields:

```json
{
  "type": "captionBlock",
  "children": [
    {
      "type": "text",
      "value": "Caption {#tbl:lable}"
    }
  ]
}
```

[unist-parent]: https://github.com/syntax-tree/unist#parent

## Contribute

PRs accepted.

## License

[MIT (c) 3846masa](https://3846masa.mit-license.org)
npm package: @paperist/remark-crossref
Description: wooorm/remark plugin for corss-references inspired by pandoc-crossref
Author: 3846masa
Latest version: 2.0.0

# @paperist/remark-crossref

[![LICENSE][license-badge]][license]
[![NPM][npm-badge]][npm]
[![standard-readme compliant][standard-readme-badge]][standard-readme]

[npm]: https://www.npmjs.com/package/@paperist/remark-crossref
[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme
[npm-badge]: https://flat.badgen.net/npm/v/@paperist/remark-crossref
[license-badge]: https://flat.badgen.net/badge/license/MIT/blue
[standard-readme-badge]: https://flat.badgen.net/badge/standard-readme/OK/green

> [wooorm/remark] plugin for corss-references inspired by [pandoc-crossref]

[wooorm/remark]: https://github.com/wooorm/remark
[pandoc-crossref]: https://github.com/lierdakil/pandoc-crossref

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [AST](#ast)
- [Contribute](#contribute)
- [License](#license)

## Install

```
npm i remark @paperist/remark-crossref
```

## Usage

```js
const unified = require('unified');
const parser = require('remark-parse');
const crossref = require('@paperist/remark-crossref');

const markdown = `
# Heading {#sec:first}

See sec.[@sec:first].
`;

const processor = unified()
  .use(parser)
  .use(crossref);
const ast = processor.parse(markdown);

processor.run(ast).then((ast) => {
  console.dir(ast, { depth: null });
});
```

## AST

See also [mdast], [unist].

[mdast]: https://github.com/syntax-tree/mdast
[unist]: https://github.com/syntax-tree/unist

### `CrossReferenceLabel`

`CrossReferenceLabel` extends [`Literal`][unist-literal].

```typescript
interface CrossReferenceLabel extends Literal {
  type: 'crossReferenceLabel';
  label: string;
  options: { [key: string]: any };
}
```

For example, the following markdown:

```md
# Heading {#sec:first}
```

Yields:

```json
{
  "type": "heading",
  "depth": 1,
  "children": [
    {
      "type": "text",
      "value": "Heading "
    },
    {
      "type": "crossReferenceLabel",
      "value": "{#sec:first}",
      "label": "sec:first",
      "options": {}
    }
  ]
}
```

### `CrossReference`

`CrossReference` extends [`Literal`][unist-literal].

```typescript
interface CrossReference extends Literal {
  type: 'crossReference';
  identifiers: string[];
}
```

For example, the following markdown:

```md
See sec.[@sec:first;@sec:second]
```

Yields:

```json
{
  "type": "paragraph",
  "children": [
    {
      "type": "text",
      "value": "See sec."
    },
    {
      "type": "crossReference",
      "value": "[@sec:first;@sec:second]",
      "identifiers": ["sec:first", "sec:second"]
    }
  ]
}
```

[unist-literal]: https://github.com/syntax-tree/unist#literal

## Contribute

PRs accepted.

## License

[MIT (c) 3846masa](https://3846masa.mit-license.org)
npm package: @paperist/remark-math
Description: wooorm/remark plugin for math likes LaTeX / MathJax
Author: 3846masa
Latest version: 2.0.0

# @paperist/remark-math

[![LICENSE][license-badge]][license]
[![NPM][npm-badge]][npm]
[![standard-readme compliant][standard-readme-badge]][standard-readme]

[npm]: https://www.npmjs.com/package/@paperist/remark-math
[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme
[npm-badge]: https://flat.badgen.net/npm/v/@paperist/remark-math
[license-badge]: https://flat.badgen.net/badge/license/MIT/blue
[standard-readme-badge]: https://flat.badgen.net/badge/standard-readme/OK/green

> [wooorm/remark] plugin for math likes [KaTeX] / [MathJax]

[wooorm/remark]: https://github.com/wooorm/remark
[katex]: https://khan.github.io/KaTeX/
[mathjax]: https://www.mathjax.org/

## Table of Contents

<!-- TOC depthFrom:2 depthTo:3 updateOnSave:false -->

- [Install](#install)
- [Usage](#usage)
- [AST](#ast)
  - [`Math`](#math)
  - [`InlineMath`](#inlinemath)
- [Contribute](#contribute)
- [License](#license)

<!-- /TOC -->

## Install

```
npm i remark @paperist/remark-math
```

## Usage

```js
const unified = require('unified');
const parser = require('remark-parse');
const math = require('@paperist/remark-math');

const markdown = `
In an x-y Cartesian coordinate system,
the circle with centre coordinates \\((a, b)\\) and
radius \\(r\\) is the set of all points \\((x, y)\\) such that

\\[
(x - a)^2 + (y - b)^2 = r^2
\\]

> https://en.wikipedia.org/wiki/Circle
`;

const processor = unified()
  .use(parser)
  .use(math);
const ast = processor.parse(markdown);

processor.run(ast).then((ast) => {
  console.dir(ast, { depth: null });
});
```

## AST

See also [mdast], [unist].

[mdast]: https://github.com/syntax-tree/mdast
[unist]: https://github.com/syntax-tree/unist

### `Math`

`Math` extends [`Literal`][unist-literal].

```typescript
interface Math extends Literal {
  type: 'math';
  math: string;
}
```

For example, the following markdown:

```md
\[
x^2 + y^2 = r^2
\]
```

Yields:

```json
{
  "type": "math",
  "value": "\\[\nx^2 + y^2 = r^2\n\\]",
  "math": "\nx^2 + y^2 = r^2\n"
}
```

### `InlineMath`

`InlineMath` extends [`Literal`][unist-literal].

```typescript
interface InlineMath extends Literal {
  type: 'inlineMath';
  math: string;
}
```

For example, the following markdown:

```md
\(E = mc^2\)
```

Yields:

```json
{
  "type": "inlineMath",
  "value": "\\(E = mc^2\\)",
  "math": "E = mc^2"
}
```

[unist-literal]: https://github.com/syntax-tree/unist#literal

## Contribute

PRs accepted.

## License

[MIT (c) 3846masa](https://3846masa.mit-license.org)
npm package: @paperist/remark-mathjax
Description: DEPRECATED: Use @paperist/remark-math
Latest version: 0.1.1
Deprecated: DEPRECATED: Use @paperist/remark-math

# remark-mathjax

**DEPRECATED: Use [@paperist/remark-math]**

[@paperist/remark-math]: https://www.npmjs.com/package/@paperist/remark-math

[![standard-readme compliant][standard-readme-badge]][standard-readme]
[![LICENSE][license-badge]][license]

[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme

[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAIGNIUk0AAHomAACAhAAA%2BgAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAVUExURSBTICJcIiNgIiZoJTuhNyt3Kf///%2BCqxSgAAAAGdFJOUwpclbn%2B4Fj6/H8AAAABYktHRAZhZrh9AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkEEjEV7MDQQwAAAGBJREFUCNc1TUEKgDAMi07vE/Q%2BRD8g%2B4BbvAvi/79iMjDQJm1CC6BbDzRsZI3incIpYeYFhCaYnLiyPYnYkwWZFWoFHrSuttCmmbwXh0eJQYVON4JthZTxCzzAmyb8%2BAAKXBRyN6RyZQAAAABJRU5ErkJggg==
[standard-readme-badge]: https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square

> wooorm/remark plugin for mathjax

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#license)

## Install

```
npm i remark @paperist/remark-mathjax
```

## Usage

```js
const remark = require('remark');
const mathjax = require('remark-mathjax');

const ast = remark().use(mathjax).parse(markdown);
console.dir(ast, { depth: null });
```

## Contribute

PRs accepted.

## License

MIT © 3846masa
npm package: @paperist/remark-preset-latex
Description: DEPRECATED: Please use @paperist/remark-latex
Latest version: 0.0.8
Deprecated: DEPRECATED: Please use @paperist/remark-latex

# @paperist/remark-preset-latex

**DEPRECATED: Please use [@paperist/remark-latex]**

[@paperist/remark-latex]: https://github.com/Paperist/remark-latex

## License

MIT © 3846masa
npm package: @paperist/types-remark
Description: TypeScript type definitions for wooorm/remark plugins.
Author: 3846masa
Latest version: 0.1.3

# @paperist/types-remark

[![LICENSE][license-badge]][license]
[![standard-readme compliant][standard-readme-badge]][standard-readme]

[license]: https://3846masa.mit-license.org
[standard-readme]: https://github.com/RichardLitt/standard-readme

[license-badge]: https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAIGNIUk0AAHomAACAhAAA%2BgAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAAVUExURSBTICJcIiNgIiZoJTuhNyt3Kf///%2BCqxSgAAAAGdFJOUwpclbn%2B4Fj6/H8AAAABYktHRAZhZrh9AAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH4AkEEjEV7MDQQwAAAGBJREFUCNc1TUEKgDAMi07vE/Q%2BRD8g%2B4BbvAvi/79iMjDQJm1CC6BbDzRsZI3incIpYeYFhCaYnLiyPYnYkwWZFWoFHrSuttCmmbwXh0eJQYVON4JthZTxCzzAmyb8%2BAAKXBRyN6RyZQAAAABJRU5ErkJggg==
[standard-readme-badge]: https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square

> TypeScript type definitions for [wooorm/remark] plugins.

[wooorm/remark]: https://github.com/wooorm/remark

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Supported Packages](#supported-packages)
- [Contribute](#contribute)
- [License](#license)

## Install

```bash
npm i @paperist/types-remark
```

**NOTE** |
You should **NOT** install `mdast`, `unist` packages. It is not exists on npm.

## Usage

First, you should set `@paperist/types-remark` to `types` in `tsconfig.json`.

```json
{
  "compilerOptions": {
    "types": ["node", "@paperist/types-remark"]
  }
}
```

## Supported packages

- [unist-util-visit]
  - `import * as Visit from 'unist-util-visit';`
- [remark-parse]
  - `import * as RemarkParse from 'remark-parse';`
- [MDAST] (no npm package)
  - `import { MDAST } from 'mdast';`
- [Unist] (no npm package)
  - `import { UNIST } from 'unist';`

[unist-util-visit]: https://github.com/syntax-tree/unist-util-visit
[remark-parse]: https://github.com/wooorm/remark/tree/master/packages/remark-parse
[MDAST]: https://github.com/syntax-tree/mdast
[Unist]: https://github.com/syntax-tree/unist

## Contribute

PRs accepted.

## License

![3846masa] MIT (c) 3846masa

[3846masa]: https://www.gravatar.com/avatar/cfeae69aae4f4fc102960f01d35d2d86?s=50
npm package: @paperkotter/eslint-config-airbnb-prettier-ts
Description: Airbnb's ESLint config with TypeScript and Prettier support
Author: paperkotter
Latest version: 0.0.2

# eslint-config-airbnb-prettier-ts package

[![Check Projects](https://github.com/paperkotter/eslint-config-airbnb-prettier-ts/actions/workflows/lint.yml/badge.svg)](https://github.com/paperkotter/eslint-config-airbnb-prettier-ts/actions/workflows/lint.yml)