# camaleon

> Installable module, available for Linux, Windows and Mac OS. Quickly view information about any exercise available in Udebug and UVA Judge.

Latest version **1.0.2** (published 2017-03-31) · MIT license · 0 weekly downloads

## Install

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

Provides the command `camaleon`.

## 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-03-31 |
| First published | 2017-03-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Julian David |
| Maintainers | anlijudavid |
| Keywords | udebug, coding, programming, excercises |

## Links

- npm: https://www.npmjs.com/package/camaleon
- Repository: https://github.com/juliandavidmr/Camaleon
- Homepage: https://github.com/juliandavidmr/Camaleon#readme
- Issues: https://github.com/juliandavidmr/Camaleon/issues
- npm.io page: https://npm.io/package/camaleon

## Dependencies (6)

- [ora](https://npm.io/package/ora.md) ^1.1.0
- [axios](https://npm.io/package/axios.md) ^0.15.3
- [caporal](https://npm.io/package/caporal.md) ^0.3.0
- [cli-table](https://npm.io/package/cli-table.md) ^0.3.1
- [scrape-it](https://npm.io/package/scrape-it.md) ^3.3.0
- [uhunt-node](https://npm.io/package/uhunt-node.md) ^1.0.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-03-31
- 1.0.1 — 2017-03-31
- 1.0.0 — 2017-03-31

## README

# Camaleon

## [**Documentación en Español**](./docs/es.md)

**Camaleon** is a multiplatform installable module, available for Linux, Windows and Mac OS. Quickly obtain, view and test exercises developed in C++ and Java. camaleon uses the V8 engine Google, so you need to install NodeJS.
For more information see [udebug](https://www.udebug.com) and [UVA](https://uva.onlinejudge.org)

## Features

- [x] Problem information
- [x] List of shipments per user
- [x] Test cases for any exercise
- [x] Compilation of C ++ code
- [x] Compilation of Java code
- [ ] Compilation of code C
- [ ] Performance Analysis
- [ ] Analysis of test cases

## Installation

```bash
$ [sudo] npm install -g camaleon
...

$ camaleon -h
```

## Information of an exercise
camaleon provides access basic information of an exercise. The data are provided by uhunt and camaleon.

```bash
# shortcut: camaleon d 100
$ camaleon desc 100
┌─────┬────────┬────────────────────┬───────┬────────┐
│ pid │ number │ title              │ limit │ status │
├─────┼────────┼────────────────────┼───────┼────────┤
│ 36  │ 100    │ The 3n + 1 problem │ 3000  │ 1      │
└─────┴────────┴────────────────────┴───────┴────────┘
```

## Submissions
Consult list of shipments made by a particular user.

```bash
# 706667 is the user ID of uva.
# shortcut: camaleon sb 706667
$ camaleon submissions 706667
┌──────────────┬─────────────────────────┐
│ name         │ user name               │
├──────────────┼─────────────────────────┤
│ Julian David │ anlijudavid@hotmail.com │
└──────────────┴─────────────────────────┘
┌───────────┬─────────┬───────────┬──────┬───────┬──────────────────────────┐
│ Reference │ problem │ result    │ time │ code  │ date                     │
├───────────┼─────────┼───────────┼──────┼───────┼──────────────────────────┤
│ 17787180  │ 2253    │ Accepted  │ 0    │ c++11 │ Thu Aug 04 2016 13:34:37 │
├───────────┼─────────┼───────────┼──────┼───────┼──────────────────────────┤
│ 18144493  │ 3666    │ Accepted  │ 170  │ java  │ Sat Oct 08 2016 11:18:18 │
└───────────┴─────────┴───────────┴──────┴───────┴──────────────────────────┘
...
```

## Test cases
Obtain all test cases available for a given exercise:

```
$ camaleon cs 100
┌───┬────────┬────────┬───────┬───────────┬───────┐
│ # │ Number │ DataID │ User  │ Date      │ Votes │
├───┼────────┼────────┼───────┼───────────┼───────┤
│ 5 │ 3      │ 821829 │ Ryuuk │ Fri Jan … │ 3     │
└───┴────────┴────────┴───────┴───────────┴───────┘
Case  5  by  Ryuuk :
2 1596        ┐
99 9999       │
1 1999        │
340 30100     │
5 6           │= Estos son los casos
7 10          │
1 98746       │
9999 9998     ┘
                  
...
```


## Compile code

### Cpp
```bash
$ camaleon c hello.cpp         #=> Shortcut
$ camaleon compile hello.cpp
```

### Java
```bash
$ camaleon c hello.java        #=> Shortcut
$ camaleon compile hello.java
```

### Directory specific
```bash
$ camaleon c folder/hello.cpp
$ camaleon c folder/hello.java
```

### Command help
```bash
$ camaleon help <comando>

# Example:
$ camaleon help submissions
```

**Note:** If the file name contains spaces then use double quotes to specify the file name:
```bash
$ camaleon c "folder/file name.cpp"
```

-----


## Contributing

Camaleon is an open source project. See [CONTRIBUTING](./docs/CONTRIBUTING.md) for details.

## LICENSE

This module is released under the [MIT License] license. @juliandavidmr

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