Created
June 2, 2020 23:27
-
-
Save jenya239/d4e2c45b498221b7bdf53f3c85c60f50 to your computer and use it in GitHub Desktop.
deno run coffeescript ))
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//deno run -A runner.js t.coffee | |
import * as cs from 'https://coffeescript.org/v2/browser-compiler-modern/coffeescript.js' | |
let f = async ()=>{ | |
const decoder = new TextDecoder('utf-8'); | |
var content = await Deno.readFile( Deno.args[0] ); | |
const source = decoder.decode(content); | |
let js = cs.compile( source ); | |
eval( js ); | |
} | |
f(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment