Skip to content

Latest commit

 

History

History
86 lines (62 loc) · 2.35 KB

index.md

File metadata and controls

86 lines (62 loc) · 2.35 KB
layout title
page
JavaScript for the moon.

{% include JB/setup %}

Dogescript is a programming language that compiles into JavaScript. While JavaScript is a beautiful language, it's not quite Doge friendly. Thankfully, Dogescript fixes that, so that your code can truly go to the moon.

Try online

Example

{% highlight text %} shh this is dogescript

such goToTheMoon much doge very moon is false rly doge is 'a doge' moon is true wow wow moon plz goToTheMoon with 'a doge' {% endhighlight %}

The Dogescript compiler can be installed from npm:

{% highlight bash %} $ npm install -g dogescript {% endhighlight %}

Getting started

Dogescript can be used either as a REPL, or as a compiler.

{% highlight bash %}

Launches a REPL that evaluates Dogescript code,

converting into Javascript on-the-fly

$ dogescript DOGE> your dogescript here

Dogescript files have a .djs extension.

Converts script.djs into Javascript,

prints to standard output

$ dogescript location/to/script.djs

With the power of Bash,

you can redirect stdout into a file

$ dogescript location/to/script.djs > final.js {% endhighlight %}

For more info, see the Tutorials page on the Wiki and the links below.

Links

Credits