ti-fs

0.1.1 • Public • Published

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 version

$ npm install ti-fs
$ cp node_modules/ti-fs/ti-fs.js /path/to/project/Resources/

support

support chart

  • * see issue #7 for details on lstat and lstatSync
  • ** see issue #6 for details on readlink and readlinkSync
  • *** see issue #5 for details on realpath and realpathSync

assumptions

  • All buffer buffers are assumed to be Ti.Buffer instances, in the absence of a Titanium implementation of the node.js buffer 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 Built with Grunt

  • 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.

Package Sidebar

Install

npm i ti-fs

Weekly Downloads

5

Version

0.1.1

License

none

Last publish

Collaborators

  • tonylukasavage
  • yuchi