PHP 8.2.30
Preview: fs.js Size: 660 B
/opt/alt/alt-nodejs19/root/lib/node_modules/npm/node_modules/node-gyp/node_modules/@npmcli/fs/lib/fs.js

const fs = require('fs')
const promisify = require('@gar/promisify')

const isLower = (s) => s === s.toLowerCase() && s !== s.toUpperCase()

const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
  typeof v === 'function' && (k.endsWith('Sync') || !isLower(k[0]))
))

// this module returns the core fs async fns wrapped in a proxy that promisifies
// method calls within the getter. we keep it in a separate module so that the
// overridden methods have a consistent way to get to promisified fs methods
// without creating a circular dependency. the ctors and sync methods are kept untouched
module.exports = { ...promisify(fs), ...fsSync }

Directory Contents

Dirs: 3 × Files: 10

Name Size Perms Modified Actions
common DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
cp DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
rm DIR
- drwxr-xr-x 2024-03-03 22:54:11
Edit Download
494 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
3.32 KB lrw-r--r-- 2023-12-06 18:07:51
Edit Download
660 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
395 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
435 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
777 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
463 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
495 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
1021 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download
395 B lrw-r--r-- 2023-12-06 18:07:51
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).