mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 01:07:55 -05:00
This was done by first checking all files in the repository root by hand, and
then by doing the following:
$ npm i get-stdin@4
$ cat clean.coffee
fs = require 'fs'
stdin = require 'get-stdin'
stdin (text) ->
for file in text.trim().split('\n')
contents = fs.readFileSync file
.toString().replace /\s*$/, '\n'
fs.writeFileSync file, contents
return
$ ls !(node_modules)/**/*.coffee | coffee clean.coffee
11 lines
214 B
CoffeeScript
11 lines
214 B
CoffeeScript
switch day
|
|
when "Mon" then go work
|
|
when "Tue" then go relax
|
|
when "Thu" then go iceFishing
|
|
when "Fri", "Sat"
|
|
if day is bingoDay
|
|
go bingo
|
|
go dancing
|
|
when "Sun" then go church
|
|
else go work
|