Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yashraj-n/image-js
A simple tool which encodes your Javascript Code into a .png image file. Written in GO
https://github.com/yashraj-n/image-js
Last synced: 4 days ago
JSON representation
A simple tool which encodes your Javascript Code into a .png image file. Written in GO
- Host: GitHub
- URL: https://github.com/yashraj-n/image-js
- Owner: yashraj-n
- Created: 2022-03-04T11:51:23.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-05T11:13:47.000Z (almost 3 years ago)
- Last Synced: 2024-04-24T05:30:46.663Z (9 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image Javascript
A simple tool which encodes your Javascript Code into a .png image fileUses [Auyer's steganography library](https://github.com/auyer/steganography/) to encode data
## Demo
Non-Encoded Image![Non Encoded Image](https://i.imgur.com/9CjvCAT.png)
SHA256: `3D568164DE25AE2AB8F1EF2E55E7A925BF0A49AF1FD85817C5113FCEA8705750`
Javascript Encoded Image
![Javascript Encoded Image](https://i.imgur.com/DbMcEM0.png)
SHA256: `16633A42672CD271865C99DC3FC9A34E517C2C694AFB822B0EA2C03808C3B093`
## Run Locally
Clone the project
```bash
git clone https://github.com/yashraj-n/image-js
```Go to the project directory
```bash
cd image-js
```Install dependencies
```bash
go get github.com/auyer/steganography/
```Run the main.go file
```bash
go run .
```## Usage
### Compile
Compile a javascript code into a image file```bash
ijs compile [Javascript file] [Image file]
```Example:
```bash
ijs compile test.js test.png --debug
```### Run
Decodes a image file into a Javascript file and runs it. (Must have node.js installed)
```bash
ijs run [Image File]
```Example:
```bash
ijs run test.png
```### Export
Decodes a image file into a Javascript file
```bash
ijs export [Image File]
```Example:
```bash
ijs export test.png
```## License
[MIT](https://choosealicense.com/licenses/mit/)