18 lines
		
	
	
		
			930 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			930 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| # clone-stats [](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/clone-stats&title=clone-stats&description=hughsk/clone-stats%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[](http://github.com/hughsk/stability-badges) #
 | |
| 
 | |
| Safely clone node's
 | |
| [`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) instances without
 | |
| losing their class methods, i.e. `stat.isDirectory()` and co.
 | |
| 
 | |
| ## Usage ##
 | |
| 
 | |
| [](https://nodei.co/npm/clone-stats)
 | |
| 
 | |
| ### `copy = require('clone-stats')(stat)` ###
 | |
| 
 | |
| Returns a clone of the original `fs.Stats` instance (`stat`).
 | |
| 
 | |
| ## License ##
 | |
| 
 | |
| MIT. See [LICENSE.md](http://github.com/hughsk/clone-stats/blob/master/LICENSE.md) for details.
 |