Commit Graph

9 Commits (3a70129a9c52e98f4acd678a1810455f4767ddf8)

Author SHA1 Message Date
Ryan Dahl 7a2e784ad7 Module refactor - almost CommonJS compatible now
API change summary:

  * require("/sys.js") becomes require("sys")

  * require("circle.js") becomes require("./circle")

  * process.path.join() becomes require("path").join()
2009-10-31 19:10:30 +01:00
Ryan Dahl ad0a4cefb8 Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
2009-10-29 23:36:41 +01:00
Ryan Dahl 3d8b14e6f7 node.fs.* moved into "/posix.js"
use require("/posix.js") to access them.
2009-10-28 22:45:46 +01:00
Tim Caswell 3558952899 DRY up the open, write, read, and close methods on the File prototype. 2009-10-28 19:17:02 +01:00
Timothy Caswell 2b9a9f9140 Clean up many of the reccommendations from jslint in the file.js library 2009-10-13 19:55:33 +02:00
Ryan Dahl 9cd7864fd9 readFile/writeFile to read/write in file library.
as suggested by Bluebie.
2009-09-27 11:07:54 +02:00
Ryan Dahl 8549994c4b Add readFile to '/file.js'
Thanks Hagen.
2009-09-22 17:28:04 +02:00
Ryan Dahl a02ca7a590 Add writeFile() to /file.js
Initial patch by Tim Caswell.
2009-09-22 12:15:49 +02:00
Ryan Dahl cd70d4a9c0 Add "/file.js" buffered disk I/O object.
This is similar to the class node.File which was removed in
82cb1b5acb.

Needs documentation.
2009-09-20 20:42:23 +02:00