clone-stats
Safely clone node's fs.Stats instances without losing their class methods
Last updated 9 years ago by hughsk .
MIT · Repository · Bugs · Original npm
$ cnpm install clone-stats 
SYNC missed versions from official npm registry.

clone-stats Flattr this!experimental

Safely clone node's fs.Stats instances without losing their class methods, i.e. stat.isDirectory() and co.

Usage

clone-stats

copy = require('clone-stats')(stat)

Returns a clone of the original fs.Stats instance (stat).

License

MIT. See LICENSE.md for details.

Current Tags

  • 1.0.0                                ...           latest (9 years ago)

2 Versions

  • 0.0.1                                ...           12 years ago
  • 1.0.0                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org