# bin2faas

> Turn binaries into FaaS functions

Latest version **0.1.0** (published 2020-01-16) · MIT license · 0 weekly downloads

## Install

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

Provides the command `bin2faas`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-01-16 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 18.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | qngapparat |
| Maintainers | jakob.wallnoefer |

## Links

- npm: https://www.npmjs.com/package/bin2faas
- npm.io page: https://npm.io/package/bin2faas

## Dependencies (1)

- [meow](https://npm.io/package/meow.md) ^6.0.0

## Recent versions

- 0.1.0 (latest) — 2020-01-16
- 0.0.2 — 2020-01-16
- 0.0.1 — 2020-01-16

## README

# bin2faas

Turn binaries into FaaS functions

## Install globally
```shell
npm i bin2faas -g
```

## Usage
```
$ bin2faas OPTIONS... BINARYPATHS...
  
  Options
    --name <FUNCTIONNAME>  
    --google  Build for Google
    --amazon  Build for Amazon
```

## Example

### Create

```shell
bin2faas --name myFirstFunc --amazon --google ./helloworld.out
```

### Deploy

```shell
cd amazon
npm run deploy

# or

cd google
npm run deploy
```

### Call

When invoking your function, specify the 'commands' field in the payload:

```
...
commands: [ 'ls -la', './helloworld.out' ],
...
```

These commands will be executed in sequence.

### Output

STDOUT and STDERR will be logged by the FaaS Platform (AWS Logs, GC Logs)

## License

MIT

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