@browselang/core

Core utilities to be used by any browse runtime

Usage no npm install needed!

<script type="module">
  import browselangCore from 'https://cdn.skypack.dev/@browselang/core';
</script>

README

The Browse Language

IMPORTANT: To use any of the scraping/web browser features, add --web when starting the browse repl or running a script

Installation

To install locally, simply run

npm i -g @browselang/cli

If you use VSCode, get the extension

code --install-extension pranaygp.browse-vscode

Usage

Hop into a browse repl

browse

Or execute a browse script

browse examples/basic/fibonacci.browse

Documentation

It's all on the Wiki


Using browse with Docker

There's a pre-build docker image available called pranaygp/browse that comes with browse and node preinstalled.

To hop into a browse repl, simply run

docker run --rm -it pranaygp/browse

Here's an example that can be run within this repo, that executes one of the example files

docker run --rm -it -v $(pwd)/examples:/examples pranaygp/browse /examples/fibonacci.browse