How to use the gracefulify function from graceful-fs

Find comprehensive JavaScript graceful-fs.gracefulify code examples handpicked from public code repositorys.

81
82
83
84
85
86
87
88
89
90
91
92
//                the queue accepts anything starting with "2." and will reject the file otherwise (crash)
//                this version is independant of the npm version or queue.json version
//     - customCodes: map of custom codes, mapping custom codes to level codes


const patchGlobalFs = () => {
  gracefulFs.gracefulify(fs);
};


const hasOwn = (object, property) => {
  return Object.prototype.hasOwnProperty.call(object, property);
fork icon0
star icon2
watch icon0