ti-fs
v0.1.1
Published
node.js-style fs for Titanium
Downloads
32
Readme
ti-fs
node.js-style fs
for Titanium. It can serve as a drop-in replacement for node.js fs
for use with browserify.
install
$ npm install ti-fs
$ cp node_modules/ti-fs/ti-fs.js /path/to/project/Resources/
support
- * see issue #7 for details on
lstat
andlstatSync
- ** see issue #6 for details on
readlink
andreadlinkSync
- *** see issue #5 for details on
realpath
andrealpathSync
assumptions
- All
buffer
buffers are assumed to be Ti.Buffer instances, in the absence of a Titanium implementation of the node.jsbuffer
module. - All
fd
file descriptors are assumed to be Ti.Filesystem.FileStream instances.
caveats
- Titanium streams (in this case Ti.Filesystem.FileStream) do not support the
position
property in any of the following functions:read | readSync
write | writeSync
- The following encodings are not currently supported, though could be if requests are made in the issues:
hex
ucs2 | ucs-2
utf16le | utf-16le
contribute
- Run all linting and tests with grunt.
- Add tests for any new implemented functionality.
- In lieu of an actual style guide, please follow the existing conventions used in the code.
- Any interface not part of the node.js
fs
module will be rejected.