# ribosomejs

> RIBOSOME [![Build Status](https://travis-ci.org/sustrik/ribosome.svg?branch=master)](https://travis-ci.org/sustrik/ribosome) ========

Latest version **1.17.9** (published 2017-08-09) · MIT license · 0 weekly downloads

## Install

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

Provides the command `ribosomejs`.

## 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.17.9 |
| Published | 2017-08-09 |
| First published | 2017-08-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | 01btc10 |
| Keywords | generator, template |

## Links

- npm: https://www.npmjs.com/package/ribosomejs
- Repository: https://github.com/01BTC10/ribosomejs
- Homepage: https://github.com/01BTC10/ribosomejs#readme
- Issues: https://github.com/01BTC10/ribosomejs/issues
- npm.io page: https://npm.io/package/ribosomejs

## Recent versions

- 1.17.9 (latest) — 2017-08-09
- 1.17.8 — 2017-08-06
- 1.17.6 — 2017-08-06
- 1.17.5 — 2017-08-06
- 1.17.4 — 2017-08-06
- 1.17.2 — 2017-08-06
- 1.17.0 — 2017-08-06

## README

# RIBOSOMEJS [![Build Status](https://travis-ci.org/01BTC10/ribosomejs.svg?branch=master)](https://travis-ci.org/01BTC10/ribosomejs)

## A simple generic code generation tool.

Forked from [here](https://github.com/sustrik/ribosome/)
This repository include only the javascript binary, javascript tests and javascript examples. The main goal of this fork is to add a javascript only npm package.

## Installation

```sh
$ npm install -g ribosomejs
```

## Usage

```sh
$ ribosomejs examples/errors.dna
```

## Example

This example uses JavaScript as the control language:

readysteady.js.dna:
```
.#include <stdio.h>
.
.int main() {
var i;
for (i=3; i>0; i--) {
.    printf("@{i}!\n");
}
.    printf("Go!\n");
.    return 0;
.}
```

To generate the code do the following:

```
$ ribosome.js readysteady.js.dna
```

The script produces the following output (which happens to be a C program):

```
#include <stdio.h>

int main() {
    printf("3!\n");
    printf("2!\n");
    printf("1!\n");
    printf("Go!\n");
    return 0;
}
```

[Original documentation](http://sustrik.github.io/ribosome/).

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