Repositorio del curso CCOM4030 el semestre B91 del proyecto Paz para la Mujer

index.js 702B

12345678910111213141516171819202122232425262728
  1. 'use strict'
  2. module.exports = Object.assign(
  3. {},
  4. // Export promiseified graceful-fs:
  5. require('./fs'),
  6. // Export extra methods:
  7. require('./copy-sync'),
  8. require('./copy'),
  9. require('./empty'),
  10. require('./ensure'),
  11. require('./json'),
  12. require('./mkdirs'),
  13. require('./move-sync'),
  14. require('./move'),
  15. require('./output'),
  16. require('./path-exists'),
  17. require('./remove')
  18. )
  19. // Export fs.promises as a getter property so that we don't trigger
  20. // ExperimentalWarning before fs.promises is actually accessed.
  21. const fs = require('fs')
  22. if (Object.getOwnPropertyDescriptor(fs, 'promises')) {
  23. Object.defineProperty(module.exports, 'promises', {
  24. get () { return fs.promises }
  25. })
  26. }