xml2js0.6.23.2 MB
Shown as plain text from the published tarball, after apm checked it against the version's checksum. Nothing in it runs on this page.
}
catch(err){caml_raise_sys_error(err.toString());}
return 0;
};
MlNodeFd.prototype.read =
function(offset, a, buf_offset, len){
try{
if(this.flags.isCharacterDevice)
var read = this.fs.readSync(this.fd, a, buf_offset, len);
else
var read = this.fs.readSync(this.fd, a, buf_offset, len, offset);
return read;
}
catch(err){caml_raise_sys_error(err.toString());}
};
MlNodeFd.prototype.close =
function(){
try{this.fs.closeSync(this.fd); return 0;}
catch(err){caml_raise_sys_error(err.toString());}
};
function MlNodeDevice(root){this.fs = require("fs"); this.root = root;}
MlNodeDevice.prototype.nm = function(name){return this.root + name;};
MlNodeDevice.prototype.exists =
function(name){
try{return this.fs.existsSync(this.nm(name)) ? 1 : 0;}
catch(err){return 0;}
};
MlNodeDevice.prototype.isFile =
function(name){
try{return this.fs.statSync(this.nm(name)).isFile() ? 1 : 0;}
catch(err){caml_raise_sys_error(err.toString());}
};
MlNodeDevice.prototype.mkdir =
function(name, mode, raise_unix){
try{this.fs.mkdirSync(this.nm(name), {mode: mode}); return 0;}
catch(err){this.raise_nodejs_error(err, raise_unix);}
};
MlNodeDevice.prototype.rmdir =
function(name, raise_unix){
try{this.fs.rmdirSync(this.nm(name)); return 0;}
catch(err){this.raise_nodejs_error(err, raise_unix);}
This file is 3.2 MB, over the 1.0 MB the full view shows, so apm shows the lines around the cited one. Lines longer than 4 kB are cut.