# jsbintool

> JSBinTool - JavaScript Binary Toolkit

Latest version **1.0.4** (published 2022-01-20) · ISC license · 0 weekly downloads

## Install

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

Provides the command `jsbintool`.

## 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.4 |
| Published | 2022-01-20 |
| First published | 2022-01-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | diegab |
| Maintainers | diegab |
| Keywords | binary, transpiling, nodejs, cli |

## Links

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

## Dependencies (1)

- [cli2json](https://npm.io/package/cli2json.md) ^1.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.4 (latest) — 2022-01-20
- 1.0.3 — 2022-01-20
- 1.0.2 — 2022-01-20
- 1.0.1 — 2022-01-20
- 1.0.0 — 2022-01-20

## README

# jsbintool
JSBinTool - JavaScript Binary Toolkit

# Usage
First install it:
```
npm install -g jsbintool
```
Now you can either compile a file:
```
jsbintool index.js --compile main.bin
```
Or run one:
```
jsbintool main.bin
```
Or transpile through either one using the JavaSciript API:
```javascript
var jsbintool = require("jsbintool");
var fs = require("fs");

// Encode string to binary file
fs.writeFileSync("test.bin", jsbintool.stringToBinary("console.log(\"Hello World!\")"))

// Evaluate binary file
eval(jsbintool.binaryFileToString("test.bin"));

// Encode file to binary file
fs.writeFileSync("test.bin", jsbintool.fileToBinary("main.js"))

// Evaluate binary file
eval(jsbintool.binaryFileToString("test.bin"));

// Evaluate raw binary using fs
eval(jsbintool.binaryToString(fs.readFileSync("test.bin")));
```

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