fs readFileSync box_test box toString split map box box split filter b

1
2
3
4
5
6
7
8
fs.readFileSync('box_test.box')
.toString()
.split('\n')
.map (box) -> box.split /\s+/
.filter (box) -> box.length > 1
map (box) ->
box[1..4].map (x) -> parseInt(x)
.concat [box[0]]