Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • pristine-tar
  • upstream
  • debian/1.0.0-3
  • debian/1.0.0-2
  • debian/1.0.0-1
  • upstream/1.0.0
7 results

node-clone-stats

  • Clone with SSH
  • Clone with HTTPS
  • Name Last commit Last update
    debian
    LICENSE.md
    README.md
    index.js
    package.json
    test.js

    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.