Sha256: d57f2c6210d841f22b0b7b2443396b50210be9cc96dc1ca0c5e012b8556ec182

Contents?: true

Size: 429 Bytes

Versions: 368

Compression:

Stored size: 429 Bytes

Contents

'use strict'

var fs = require('fs')

module.exports = clone(fs)

function clone (obj) {
  if (obj === null || typeof obj !== 'object')
    return obj

  if (obj instanceof Object)
    var copy = { __proto__: obj.__proto__ }
  else
    var copy = Object.create(null)

  Object.getOwnPropertyNames(obj).forEach(function (key) {
    Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))
  })

  return copy
}

Version data entries

368 entries across 99 versions & 17 rubygems

Version Path
blsk-sevcore-0.0.2 blsk_old/bluesky-doc/bluesky-doc/node_modules/graceful-fs/fs.js
optimacms-0.4.3 spec/dummy/node_modules/graceful-fs/fs.js
optimacms-0.4.2 spec/dummy/node_modules/graceful-fs/fs.js
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/graceful-fs/fs.js
lux_assets-0.2.11 ./node_modules/graceful-fs/fs.js
lux_assets-0.2.9 ./node_modules/graceful-fs/fs.js
lux_assets-0.2.4 ./node_modules/graceful-fs/fs.js
lux_assets-0.2.2 ./node_modules/graceful-fs/fs.js
lux_assets-0.2.1 ./node_modules/graceful-fs/fs.js
locomotivecms-3.4.0 app/javascript/node_modules/graceful-fs/fs.js
cortex-0.1.3 spec/dummy/node_modules/graceful-fs/fs.js
dragonfly_puppeteer-0.1.0 node_modules/graceful-fs/fs.js
affiliator-0.2.1 node_modules/fsevents/node_modules/graceful-fs/fs.js
affiliator-0.2.1 node_modules/graceful-fs/fs.js
guard-sass-lint-0.1.2 node_modules/graceful-fs/fs.js
guard-sass-lint-0.1.1 node_modules/graceful-fs/fs.js
lanes-0.8.0 node_modules/graceful-fs/fs.js
lanes-0.8.0 node_modules/fsevents/node_modules/graceful-fs/fs.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-registry-client/node_modules/graceful-fs/fs.js
trusty-festivity-extension-2.6.3 node_modules/bower/node_modules/bower-config/node_modules/graceful-fs/fs.js