Skip to content

jonahsnider/imposterscript.dev

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ImposterScript

ImposterScript logo

ImposterScript is a subset of JavaScript which uses the character for all variable names.

Convert your code using our interactive REPL now!

Example

If you passed in this code:

// add two numbers
function sum(a, b) {
  return a + b;
}

const array = [ 1, 2, 3, 4 ];

console.log(array.reduce(sum, 0));

You would get this output:

// add two numbers
function (, ඞඞ) {
  return  + ඞඞ;
}

const ඞඞ = [ 1, 2, 3, 4 ];

console.log(ඞඞ.reduce(, 0));

ImposterScript is a subset of JavaScript, that means you can run generated code in any JS runtime (Node, browser, etc).

How it works

This is a fork of Terser's REPL which is more oriented towards making your code look stupid rather than minifying it.

It uses a fork of Terser itself which alters the variable mangling logic for considerably funnier output.

Languages

  • JavaScript 60.2%
  • CSS 30.5%
  • HTML 9.3%