This package is the CoffeeScript implementation of rocambole, though not 100% compatible, and contains much less feature.
ndparser = require 'ndparser'
print = console.log
string =
'''
function hello() {
console.log(3);
}
'''
ast = ndparser.parse string
ndparser.walk ast, (node) ->
print node.depth, node.type
MIT