2013-10-18から1日間の記事一覧
fs.js fs.readAllFile(directory, callback) /** * Extends standard FileSystem module. * * @module fs */ var fs = require('fs'), path = require('path'), Q = require('q'); /** * Read All files in the directory. * * @static * @param {string} di…
http.js /** * Extends standard http module. * * @module http */ 'use strict'; var http = require('http'); /** * Wrapper for http.get() to get JSON resource. * * @example * var http = require('./http.js'); * http.getJson('http://example.com…