# pluto-rest

> A JavaScript interface for the Pluto.jl "What you see is what you REST" web API.

Latest version **1.0.1** (published 2021-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install pluto-rest
pnpm add pluto-rest
yarn add pluto-rest
bun add pluto-rest
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2021-05-06 |
| First published | 2021-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Connor Burns |
| Maintainers | ctrekker |

## Links

- npm: https://www.npmjs.com/package/pluto-rest
- Repository: https://github.com/ctrekker/pluto-rest
- Homepage: https://github.com/ctrekker/pluto-rest#readme
- Issues: https://github.com/ctrekker/pluto-rest/issues
- npm.io page: https://npm.io/package/pluto-rest

## Dependencies (1)

- [msgpack-lite](https://npm.io/package/msgpack-lite.md) 0.1.26

## Recent versions

- 1.0.1 (latest) — 2021-05-06
- 1.0.0 — 2021-05-06

## README

# pluto-rest
A JavaScript interface for the Pluto.jl \"What you see is what you REST\" web API.

## Installation
```
npm install pluto-rest
```

## Usage
The following example is based off the REST Docs.jl Pluto notebook. Also note that this example must be wrapped in an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function).
```javascript
const { PlutoNotebook } = require('pluto-rest')

const nb = new PlutoNotebook('REST Docs.jl')

// Evaluation
console.log(await nb.c)  // prints 5
console.log(await nb({a: 5, b: 12}).c)  // prints 13

// Calling functions
console.log(await (await nb.distance)(3, 4, 12))  // prints 13 
```

---
_Source: https://npm.io/package/pluto-rest · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
