Skip to content
McClaneScript is a new syntax for javascript. Now, write all of your code with one-liners from John McClane in Die Hard!
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
McClaneScript.js
README.md

README.md

McClaneScript

McClaneScript is a new syntax for javascript. Now, write all of your code with one-liners from John McClane in Die Hard!

REQUIRES JQUERY!

Syntax

Many of the links are NSFW bc language!

McClaneScript Javascript
Now I have a machine gun. Ho Ho Ho! var
Yippee-ki-yay motherfucker! function
Come to papa return
What the fuck are you doing?! if
Who's driving this car, Stevie Wonder? else
Merry Christmas! TRUE
Doesn't look like you're in charge of jack shit! FALSE
I was pretty goddamn useless null
Pretty fuckin unappreciated Al NAN
Jesus, is the circus in town? for
Why the fuck didnt you stop'em John? while
Agent Johnson? switch
I hate it when I'm right case
Drop it dickhead! break
Motherfuckin motherfucker default
Need a hug? =
Geronimo motherfucker! +
Drop the gun! -
Let's go kill some motherfuckers! *
Take the twinkie out of your mouth /
I was out of bullets %
Welcome to the party, pal! console.log

Usage

Simply write your code and save it to any file that you can access on your server. The file extension doesn't matter, but might I suggest ".mc" for McClane?

Then call the McClane script using:

McClane.says('String Location of Your McClane Script File');

Example

public/myMCScript.mc

Welcome to the party, pal!("hi!");

Now I have a machine gun. Ho Ho Ho! i Need a hug? 0;

fAddStuff()

Welcome to the party, pal!(i);

Yippee-ki-yay motherfucker! fAddStuff() {
	i Geronimo motherfucker!Need a hug? 5
};

app.js

McClane.says("/myMCScript.mc");

in the browser's console

=> hi!
=> 5
You can’t perform that action at this time.