Node.js - how to decode a base64 using node.js cypto

I want to use the cypto package to decode a base64 string. From the docs,

http://nodejs.org/docs/v0.3.1/api/crypto.html#hash.digest

I am rather confused on how do do it.

e.g. mystring - base64(string).decode()