squiggle/packages/website/docs/Javscript-library.md

16 lines
436 B
Markdown
Raw Permalink Normal View History

2022-02-06 18:40:28 +00:00
---
2022-02-09 15:22:51 +00:00
sidebar_position: 2
2022-02-06 18:40:28 +00:00
---
# Javascript Library
2022-02-09 15:22:51 +00:00
There's a very simple javscript library for Squiggle here: https://www.npmjs.com/package/squiggle-experimental.
2022-02-06 18:40:28 +00:00
2022-02-09 15:22:51 +00:00
You can see it live on this Observable page: [https://observablehq.com/d/a99e822870c4ca5f](https://observablehq.com/d/a99e822870c4ca5f).
## Simple Example
```
let squiggle = require("squiggle-experimental@0.1.9/dist/index.js")
squiggle.runMePlease("3 + normal(50,1))
```