fd
File descriptor manager
Last updated 14 years ago by rvagg .
MIT · Repository · Original npm · Tarball · package.json
$ npm install fd 
SYNC missed versions from official npm registry.

fd Build Status

File descriptor manager for Node.js. Available in npm as fd.

Example

(this example is a bit contrived, something more realistic coming soon)

var fdman = require('fd')()

fdman.open('/foo/bar/baz.txt', function (err, fd) {
  fdman.checkout('/foo/bar/baz.txt')
  // do something with `fd`
  fdman.checkin('/foo/bar/baz.txt')
  fdman.close('/foo/bar/baz.txt')
})

API

Licence

fd is Copyright (c) 2012 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details.

Current Tags

  • 0.0.3                                ...           latest (9 years ago)

4 Versions

  • 0.0.3                                ...           9 years ago
  • 0.0.2                                ...           14 years ago
  • 0.0.1                                ...           14 years ago
  • 0.0.0                                ...           14 years ago
Maintainers (1)
Downloads
Total 12
Today 0
This Week 0
This Month 7
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (3)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE