Skip to content

bouk/koffiescript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dutch Flag

KoffieScript lets you write JavaScript in Dutch; Finally there is a way for Dutch people to code in their native language!

See it in action here.

Including KoffieScript files in your HTML

KoffieScript supports the text/koffiescript MIME type. Any script tag with that type will be compiled and run automatically:

<script type="text/koffiescript">
  als (x < 5) {
    console.log("hallo!");
  } anders {
    console.log("dacht het niet!");
  }
</script>

You can also specify a src for your script tags:

<script type="text/koffiescript" src="snaps.koffie"></script>

Optional

Convert from KoffieScript to JavaScript:
KoffieScript.DutchToEnglish(code); // returns a string representing the translated code
Convert from JavaScript to KoffieScript:
KoffieScript.EnglishToDutch(code); // returns a string representing the translated code

Missing/incorrect translations?

You can see the translations over here. Feel free to submit a pull request!

###TO-DOs

  • Syntax highlighting for unicode chars
  • npm support for command line compiling
  • Add more translations!!! (ex: Array.pop, push, etc...)

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.7%
  • CSS 1.3%