# jslogo

> Headless Logo interpreter (based on Joshua Bell's JS Logo)

Latest version **1.0.2** (published 2017-12-25) · Apache License, Version 2.0 license · 0 weekly downloads

## Install

```sh
npm install jslogo
pnpm add jslogo
yarn add jslogo
bun add jslogo
```

Provides the command `jslogo`.

## 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.2 |
| Published | 2017-12-25 |
| First published | 2017-12-25 |
| Weekly downloads | 0 |
| License | Apache License, Version 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Kristijan Burnik |
| Maintainers | kburnik |

## Links

- npm: https://www.npmjs.com/package/jslogo
- Repository: https://github.com/kburnik/jslogo
- Homepage: https://github.com/kburnik/jslogo#readme
- Issues: https://github.com/kburnik/jslogo/issues
- npm.io page: https://npm.io/package/jslogo

## Dependencies (3)

- [jimp](https://npm.io/package/jimp.md) ^0.2.28
- [canvas](https://npm.io/package/canvas.md) ^1.6.9
- [argparse](https://npm.io/package/argparse.md) ^1.0.9

## Recent versions

- 1.0.2 (latest) — 2017-12-25
- 1.0.1 — 2017-12-25
- 1.0.0 — 2017-12-25

## README

# jslogo - Logo interpreter with headless execution support

The nodejs version of jslogo allows you to execute Logo source files in a shell
environment without needing to run a browser. The output image and text are
stored in the location specified by the command line arguments.

This is especially convenient for doing automation with Logo programs.

## Credits

This is a forked project based on Joshua Bell's JS Logo:

https://github.com/inexorabletash/jslogo/

He's done a tremendous job at developing the interpreter and definitely deserves
the credit. My small contributions is just enabling this to run server side.


## Installation

Requires nodejs >= 8.

```bash
# for canvas
sudo apt-get install libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev \
  build-essential g++

# For using jslogo in a shell environment
npm install -g jslogo

# For development
git clone https://github.com/kburnik/jslogo.git && \
  cd jslogo && \
  npm update
```

## Usage

```bash
mkdir out
jslogo -f examples/example.lgo -o out/example
```

This will execute the code from `example.lgo` and store the image and text
along with other outputs with the specified prefix.

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