/tags/buffer
- Node.js: Base64 encoding and decoding
How to Base64 encode and decode in Node.js Here is how you encodetext to base64 in Node.js: var b = new Buffer('JavaScript'); var s = b.toString('base64'); // SmF2YVNjcmlwdA== And here is how you dec...
- Using Node.js to download files
How to download files using Node.js There are three approaches to writing a file downloader using Node: Using HTTP.get Using curl Using wget I have created functions for all of them. To get the examp...