{"_id":"@npmcli/fs","_rev":"4130242","name":"@npmcli/fs","description":"filesystem utilities for the npm cli","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"time":{"modified":"2026-03-01T18:31:49.000Z","created":"2021-08-25T19:28:43.898Z","5.0.0":"2025-10-23T17:23:30.346Z","4.0.0":"2024-09-23T22:08:40.483Z","3.1.1":"2024-05-07T15:36:22.078Z","3.1.0":"2022-11-03T20:51:20.420Z","3.0.0":"2022-10-12T17:55:37.105Z","2.1.2":"2022-08-15T19:54:43.041Z","2.1.1":"2022-07-20T22:42:43.944Z","2.1.0":"2022-03-21T23:50:34.489Z","2.0.1":"2022-02-23T19:10:31.203Z","2.0.0":"2022-02-23T17:53:19.873Z","1.1.1":"2022-02-10T22:12:41.497Z","1.1.0":"2021-12-09T21:50:24.400Z","1.0.0":"2021-08-25T19:28:43.898Z"},"users":{},"author":{"name":"GitHub Inc."},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"versions":{"5.0.0":{"name":"@npmcli/fs","version":"5.0.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"npm run eslint","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.27.1","tap":"^16.0.1"},"dependencies":{"semver":"^7.3.5"},"engines":{"node":"^20.17.0 || >=22.9.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.27.1","publish":true},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"b473b1578b8506d0dee9eab2f0e547296c4de5d3","_id":"@npmcli/fs@5.0.0","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_nodeVersion":"22.20.0","_npmVersion":"11.6.2","dist":{"shasum":"674619771907342b3d1ac197aaf1deeb657e3539","size":8720,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-5.0.0.tgz"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:14ad4a25-8ed4-43e9-8236-60894d03026c"}},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/fs_5.0.0_1761240210163_0.2723791607675461"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-10-23T17:23:30.346Z","publish_time":1761240210346,"_source_registry_name":"default","_cnpm_publish_time":1761240210346},"4.0.0":{"name":"@npmcli/fs","version":"4.0.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"npm run eslint","lintfix":"npm run eslint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force","eslint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\""},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.23.3","tap":"^16.0.1"},"dependencies":{"semver":"^7.3.5"},"engines":{"node":"^18.17.0 || >=20.5.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.23.3","publish":true},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"_id":"@npmcli/fs@4.0.0","gitHead":"70bf80857da6c8c79b927e53027fa9e38504ed70","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_nodeVersion":"22.9.0","_npmVersion":"10.8.3","dist":{"shasum":"a1eb1aeddefd2a4a347eca0fab30bc62c0e1c0f2","size":8719,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-4.0.0.tgz"},"_npmUser":{"name":"npm-cli-ops","email":"npm-cli+bot@github.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_4.0.0_1727129320273_0.9161406791848452"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-09-23T22:08:40.483Z","publish_time":1727129320483,"_source_registry_name":"default","_cnpm_publish_time":1727129320483},"3.1.1":{"name":"@npmcli/fs","version":"3.1.1","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.22.0","tap":"^16.0.1"},"dependencies":{"semver":"^7.3.5"},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.22.0"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"_id":"@npmcli/fs@3.1.1","gitHead":"6f51359dd52cd06bd4cb2c36202163f330c528c4","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_nodeVersion":"20.7.0","_npmVersion":"10.7.0","dist":{"shasum":"59cdaa5adca95d135fc00f2bb53f5771575ce726","size":8681,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-3.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-3.1.1.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_3.1.1_1715096181914_0.5971357305605953"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-05-07T15:36:22.078Z","publish_time":1715096182078,"_source_registry_name":"default","_cnpm_publish_time":1715096182078},"3.1.0":{"name":"@npmcli/fs","version":"3.1.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^4.0.0","@npmcli/template-oss":"4.8.0","tap":"^16.0.1"},"dependencies":{"semver":"^7.3.5"},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.8.0"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"cf77fd08615fbc63499bb418f98ca0c0a1e5d9b8","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@3.1.0","_nodeVersion":"18.12.0","_npmVersion":"9.0.1","dist":{"shasum":"233d43a25a91d68c3a863ba0da6a3f00924a173e","size":8662,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-3.1.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_3.1.0_1667508680249_0.4298445371566251"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-11-03T20:51:27.701Z","publish_time":1667508680420,"_cnpm_publish_time":1667508680420},"3.0.0":{"name":"@npmcli/fs","version":"3.0.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"4.5.1","tap":"^16.0.1"},"dependencies":{"semver":"^7.3.5"},"engines":{"node":"^14.17.0 || ^16.13.0 || >=18.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"4.5.1"},"tap":{"nyc-arg":["--exclude","tap-snapshots/**"]},"gitHead":"3207a9dcfc38d1cf9833938f8c04abf3de88d577","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@3.0.0","_nodeVersion":"16.16.0","_npmVersion":"9.0.0-pre.4","dist":{"shasum":"00d13fd40d9144fb0ca40faf04f755625856ccd2","size":7257,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-3.0.0.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_3.0.0_1665597336936_0.17965986025167213"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-13T20:21:57.544Z","publish_time":1665597337105,"_cnpm_publish_time":1665597337105},"2.1.2":{"name":"@npmcli/fs","version":"2.1.2","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"3.5.0","tap":"^16.0.1"},"dependencies":{"@gar/promisify":"^1.1.3","semver":"^7.3.5"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.5.0"},"gitHead":"e539938a6d3865233cc141cbda2478ae303dad2a","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@2.1.2","_nodeVersion":"18.6.0","_npmVersion":"8.17.0","dist":{"shasum":"a9e2541a4a2fec2e69c29b35e6060973da79b865","size":11433,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-2.1.2.tgz"},"_npmUser":{"name":"gar","email":"gar+npm@danger.computer"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_2.1.2_1660593282794_0.033811755824476375"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-08-15T19:54:46.647Z","publish_time":1660593283041,"_cnpm_publish_time":1660593283041},"2.1.1":{"name":"@npmcli/fs","version":"2.1.1","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"3.5.0","tap":"^16.0.1"},"dependencies":{"@gar/promisify":"^1.1.3","semver":"^7.3.5"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.5.0"},"gitHead":"7c0c1f322004253b5a64ad3679eeaa80b1876275","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@2.1.1","_nodeVersion":"18.0.0","_npmVersion":"8.13.2","dist":{"shasum":"c0c480b03450d8b9fc086816a50cb682668a48bf","size":11429,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-2.1.1.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_2.1.1_1658356963770_0.4711236480012506"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-20T22:42:48.024Z","publish_time":1658356963944,"_cnpm_publish_time":1658356963944},"2.1.0":{"name":"@npmcli/fs","version":"2.1.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint \"**/*.js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"template-oss-check","template-oss-apply":"template-oss-apply --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/eslint-config":"^3.0.1","@npmcli/template-oss":"3.1.2","tap":"^15.1.6"},"dependencies":{"@gar/promisify":"^1.1.3","semver":"^7.3.5"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16.0.0"},"templateOSS":{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.","version":"3.1.2"},"gitHead":"d6bde67636025ed44141797082b951131d04ff3d","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@2.1.0","_nodeVersion":"16.14.0","_npmVersion":"8.5.2","dist":{"shasum":"f2a21c28386e299d1a9fae8051d35ad180e33109","size":13078,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-2.1.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_2.1.0_1647906634293_0.8065911971919175"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-03-21T23:50:38.386Z","publish_time":1647906634489,"_cnpm_publish_time":1647906634489},"2.0.1":{"name":"@npmcli/fs","version":"2.0.1","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint '**/*.js'","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"npm-template-check","template-copy":"npm-template-copy --force"},"repository":{"type":"git","url":"git+https://github.com/npm/fs.git"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/template-oss":"^2.7.1","tap":"^15.1.6"},"dependencies":{"@gar/promisify":"^1.1.3","semver":"^7.3.5"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16"},"templateOSS":{"version":"2.7.1"},"gitHead":"8716d97636563a2fabaafda8e65af502ea6b862a","bugs":{"url":"https://github.com/npm/fs/issues"},"homepage":"https://github.com/npm/fs#readme","_id":"@npmcli/fs@2.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.5.1","dist":{"shasum":"ccd1414f9f8f987384718a16d09d2d850a424bfd","size":12626,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-2.0.1.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_2.0.1_1645643431057_0.2442349536695647"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-23T19:10:38.114Z","publish_time":1645643431203,"_cnpm_publish_time":1645643431203},"2.0.0":{"name":"@npmcli/fs","version":"2.0.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint '**/*.js'","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"npm-template-check","template-copy":"npm-template-copy --force"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/template-oss":"^2.7.1","tap":"^15.1.6"},"dependencies":{"@gar/promisify":"^1.1.3","semver":"^7.3.5"},"engines":{"node":"^12.13.0 || ^14.15.0 || >=16"},"templateOSS":{"version":"2.7.1"},"gitHead":"123389240ecb25d0b8ea403df7f1d84efd047d6f","_id":"@npmcli/fs@2.0.0","_nodeVersion":"16.14.0","_npmVersion":"8.5.1","dist":{"shasum":"542e700b152e2909f0123689664a04a10720aafe","size":12585,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-2.0.0.tgz"},"_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_2.0.0_1645638799683_0.7235770158533537"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-23T17:53:25.566Z","publish_time":1645638799873,"_cnpm_publish_time":1645638799873},"1.1.1":{"name":"@npmcli/fs","version":"1.1.1","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint '**/*.js'","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"npm-template-check"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/template-oss":"^2.3.1","tap":"^15.0.9"},"dependencies":{"@gar/promisify":"^1.0.1","semver":"^7.3.5"},"templateVersion":"2.3.1","gitHead":"d5f6cda4d7b5da6f944471105df7deef5c67c1a5","_id":"@npmcli/fs@1.1.1","_nodeVersion":"16.13.2","_npmVersion":"8.5.0","dist":{"shasum":"72f719fe935e687c56a4faecf3c03d06ba593257","size":12531,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-1.1.1.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_1.1.1_1644531161306_0.875982806076564"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-10T22:12:47.255Z","publish_time":1644531161497,"_cnpm_publish_time":1644531161497},"1.1.0":{"name":"@npmcli/fs","version":"1.1.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"eslint '**/*.js'","lintfix":"npm run lint -- --fix","posttest":"npm run lint","postsnap":"npm run lintfix --","postlint":"npm-template-check"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/template-oss":"^2.3.1","tap":"^15.0.9"},"dependencies":{"@gar/promisify":"^1.0.1","semver":"^7.3.5"},"templateVersion":"2.3.1","engines":{"node":"^12.13.0 || ^14.15.0 || >=16"},"gitHead":"b11009016f5b1d3ad9dd4ec9a17215c49dee3da9","_id":"@npmcli/fs@1.1.0","_nodeVersion":"16.13.0","_npmVersion":"8.3.0","dist":{"shasum":"bec1d1b89c170d40e1b73ad6c943b0b75e7d2951","size":12566,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-1.1.0.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_1.1.0_1639086624246_0.05716132949633068"},"_hasShrinkwrap":false,"publish_time":1639086624400,"_cnpm_publish_time":1639086624400,"deprecated":"this version had an improper engines field added, update to 1.1.1"},"1.0.0":{"name":"@npmcli/fs","version":"1.0.0","description":"filesystem utilities for the npm cli","main":"lib/index.js","scripts":{"preversion":"npm test","postversion":"npm publish","prepublishOnly":"git push origin --follow-tags","snap":"tap","test":"tap","npmclilint":"npmcli-lint","lint":"npm run npmclilint -- \"lib/**/*.*js\" \"test/**/*.*js\"","lintfix":"npm run lint -- --fix","posttest":"npm run lint --","postsnap":"npm run lintfix --"},"keywords":["npm","oss"],"author":{"name":"GitHub Inc."},"license":"ISC","devDependencies":{"@npmcli/lint":"^1.0.1","tap":"^15.0.9"},"dependencies":{"@gar/promisify":"^1.0.1","semver":"^7.3.5"},"gitHead":"5badc84bf1c5bb307a497cbb811e56383cb08242","_id":"@npmcli/fs@1.0.0","_nodeVersion":"16.5.0","_npmVersion":"7.20.6","dist":{"shasum":"589612cfad3a6ea0feafcb901d29c63fd52db09f","size":8029,"noattachment":false,"key":"/@npmcli/fs/-/@npmcli/fs-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@npmcli/fs/download/@npmcli/fs-1.0.0.tgz"},"_npmUser":{"name":"nlf","email":"quitlahok@gmail.com"},"directories":{},"maintainers":[{"name":"gar","email":""},{"name":"npm-cli-ops","email":""},{"name":"owlstronaut","email":""},{"name":"reggi","email":""},{"name":"saquibkhan","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs_1.0.0_1629919723626_0.9834209494189732"},"_hasShrinkwrap":false,"publish_time":1629919723898,"_cnpm_publish_time":1629919723898}},"readme":"# @npmcli/fs\n\npolyfills, and extensions, of the core `fs` module.\n\n## Features\n\n- `fs.cp` polyfill for node < 16.7.0\n- `fs.withTempDir` added\n- `fs.readdirScoped` added\n- `fs.moveFile` added\n\n## `fs.withTempDir(root, fn, options) -> Promise`\n\n### Parameters\n\n- `root`: the directory in which to create the temporary directory\n- `fn`: a function that will be called with the path to the temporary directory\n- `options`\n  - `tmpPrefix`: a prefix to be used in the generated directory name\n\n### Usage\n\nThe `withTempDir` function creates a temporary directory, runs the provided\nfunction (`fn`), then removes the temporary directory and resolves or rejects\nbased on the result of `fn`.\n\n```js\nconst fs = require('@npmcli/fs')\nconst os = require('os')\n\n// this function will be called with the full path to the temporary directory\n// it is called with `await` behind the scenes, so can be async if desired.\nconst myFunction = async (tempPath) => {\n  return 'done!'\n}\n\nconst main = async () => {\n  const result = await fs.withTempDir(os.tmpdir(), myFunction)\n  // result === 'done!'\n}\n\nmain()\n```\n\n## `fs.readdirScoped(root) -> Promise`\n\n### Parameters\n\n- `root`: the directory to read\n\n### Usage\n\nLike `fs.readdir` but handling `@org/module` dirs as if they were\na single entry.\n\n```javascript\nconst { readdirScoped } = require('@npmcli/fs')\nconst entries = await readdirScoped('node_modules')\n// entries will be something like: ['a', '@org/foo', '@org/bar']\n```\n\n## `fs.moveFile(source, dest, options) -> Promise`\n\nA fork of [move-file](https://github.com/sindresorhus/move-file) with\nsupport for Common JS.\n\n### Highlights\n\n- Promise API.\n- Supports moving a file across partitions and devices.\n- Optionally prevent overwriting an existing file.\n- Creates non-existent destination directories for you.\n- Automatically recurses when source is a directory.\n\n### Parameters\n\n- `source`: File, or directory, you want to move.\n- `dest`: Where you want the file or directory moved.\n- `options`\n  - `overwrite` (`boolean`, default: `true`): Overwrite existing destination file(s).\n\n### Usage\n\nThe built-in\n[`fs.rename()`](https://nodejs.org/api/fs.html#fs_fs_rename_oldpath_newpath_callback)\nis just a JavaScript wrapper for the C `rename(2)` function, which doesn't\nsupport moving files across partitions or devices. This module is what you\nwould have expected `fs.rename()` to be.\n\n```js\nconst { moveFile } = require('@npmcli/fs');\n\n(async () => {\n\tawait moveFile('source/unicorn.png', 'destination/unicorn.png');\n\tconsole.log('The file has been moved');\n})();\n```\n","_attachments":{},"homepage":"https://github.com/npm/fs#readme","bugs":{"url":"https://github.com/npm/fs/issues"},"license":"ISC"}