improve clone 

- clone history
- option for deep clone, default: false
- option for cloneBuffer, default: true
- use node-v8-clone for performance, fallback to lodash
- add jshintrc to check code style

Contents are cloned by default now, opt == deep when boolean I think.—
Sent from Mailbox for iPhone

On Thu, Aug 28, 2014 at 11:28 PM, Eric Schoffstall
<notifications@github.com> wrote:

>> @@ -45,19 +48,28 @@ File.prototype.isDirectory = function() {
>>    return this.isNull() && this.stat && this.stat.isDirectory();
>>  };
>>  
>> -File.prototype.clone = function() {
>> -  var clone = new File();
>> +File.prototype.clone = function(opt) {
>> +  if (typeof opt === 'boolean') {
>> +    opt = { deep: opt, contents: true };
> also if opt is false shouldn't contents clone be false?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/wearefractal/vinyl/pull/32/files#r16846800