weird-js-compiler
v1.0.0
Published
This will compile any file, and replace normal text with +![](){}. Bet you can't read it!
Downloads
2
Readme
Weird JS Compiler
Installation
npm install weird-js-compiler
What does this do?
This module will compile any file or code provided to an executable made of (![]{}()
) that no human can read!
It can be run both from command line and a normal js file!
The files made by this can be executed with node like any other js file!
How to use this?
Well, its simple!
From the command line just type strangejs
. It will run the compiler, which will ask you for a file to compile and a name for the exported file!
Run with code (from another script)
const compiler = require("weird-js-compiler")
const compiledFromCode = compiler({
code: 'console.log("Hello World")',
export: 'fromCode.js' //set it to null if you don't want to export
})
const compiledFromFile = compiler({
file: 'file.js',
export: 'fromFile.js' //set it to null if you don't want to export
})
Why i made this?
I watched a video from Low Level Javascript and i thought it would be fun to actually publish a compiler.
So i did it!