{"_id":"@anio-fs/clean","_rev":"8-9d645d596b3c7cac5435e008c0038660","name":"@anio-fs/clean","dist-tags":{"latest":"4.0.0"},"versions":{"1.0.0":{"name":"@anio-fs/clean","version":"1.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"e749149d390785d4a105ec0c70670192d038f4f8","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.0.0.tgz","fileCount":7,"integrity":"sha512-hN2C14f2QBfxVOyH7yYgltRqt6jMWrHYXuGTGhadAwE4fZzg0S9MxcffVsrw4g7qqQLZ4hDk+0TfPdzFf0iRdw==","signatures":[{"sig":"MEQCIFN6t2vjNyJn2tvL3q7jDc2gnaHx6fvTt9PaE6JVABZHAiBPfZtstWUv0JWlvbJRSWZEZlXC5DrVZ7e+g+73t31ZHg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72274},"main":"./dist/package.min.mjs","gitHead":"533b702e76df80e6b899975f8badaed3374ae3bc","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/remove":"^4.0.2","@anio-fs/scandir":"^4.1.0","@vipen/target-js":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.0.0_1712278388159_0.837288775892497","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@anio-fs/clean","version":"1.0.1","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.0.1","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"11fa9dc8659d8a65b404e9bf18bc76f7360655e8","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.0.1.tgz","fileCount":7,"integrity":"sha512-wdbujZxrYkPnNhPuWsHbhrT0rasuetr7x5llLS5wESB+WSIiqN/8nWuLWFe69LHec7LP8O0n34n01FURDlyuaw==","signatures":[{"sig":"MEUCIQDL3K23dfRvqYDJlq1K2IbcObjpjdXurc/ahSv4RBlm7gIgF4uEY9ITTRivart26dnh7GzCsUaJvzO8cSN3y+rJEjE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72290},"main":"./dist/package.min.mjs","gitHead":"39d88099f60b9a4635ab8b715fa14acabd606b97","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/remove":"^4.0.2","@anio-fs/scandir":"^4.1.0","@vipen/target-js":"^0.15.1"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.0.1_1712285452446_0.556840037791557","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@anio-fs/clean","version":"1.1.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.1.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"be7ea965e7e92d50194bfed743a85d46a3d7d1f1","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.1.0.tgz","fileCount":7,"integrity":"sha512-bZqZoknbjLM92xFj2Rjm9CwMm42yZKGQdbBvekTj8u5YV1x+zwP99LstUk3NfZXWsbpsQI5uv4wY7w9WZgkM8w==","signatures":[{"sig":"MEQCIAGNShdfqAznKkUSHIbDZjtvqzfcWXOMSXuvdw9TBEHEAiAYkc5LJRBYIhW5lHruXUrqdYrzdjoqoC5jBVzVYx4n6Q==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72564},"main":"./dist/package.min.mjs","gitHead":"ebdf2b464b70154418d2f1506aed482ca3caed97","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/remove":"^4.0.2","@anio-fs/scandir":"^4.2.0","@vipen/target-js":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.1.0_1712287337633_0.18288418738227996","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@anio-fs/clean","version":"1.1.1","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.1.1","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"20bf1e5b94ea11226bdefb41b21dffbf24910663","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.1.1.tgz","fileCount":7,"integrity":"sha512-wUsV7uM4ojIQOxIpeG8wA/IgdFvgbCD1THJclhG7S0rpbDzt1KYntwWnUmVkm2BIM98s9EPmhvAvWgAsO5BRvQ==","signatures":[{"sig":"MEQCIB32wV0w/VyN/aN9nXVb36HxYQnMJ94yPn4RsiS8vz1XAiAvEbedbkGTRDJR4WE/JbA88U5vdSo5kyeYc0DDyJXbJQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":72564},"main":"./dist/package.min.mjs","gitHead":"e9973f733f2f7c7a5c7b03e92e02961c36d2209c","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/remove":"^4.0.2","@anio-fs/scandir":"^4.2.0","@vipen/target-js":"^0.16.1"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.1.1_1712287701668_0.6351561143254343","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@anio-fs/clean","version":"1.1.2","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.1.2","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"277892c839c96709cac05a337732acbd4ad7a8e7","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.1.2.tgz","fileCount":7,"integrity":"sha512-lRvLnqLdta0vuXM6uHd10IEpcDqHUyi/glfDLCYJA9gkPTSDWKbMzAd0mwQ23k++DxTJ+5W8KMaMTQEg1xnvZw==","signatures":[{"sig":"MEYCIQDMCXAC01QabRw92bzxuHvZpAQ4gqYWwcC5MjC0R7kcjgIhAPsfWzSJAItLXuV4j2U3JD9f86RCFIHLIzlij6Bqh/VR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39074},"main":"./dist/package.min.mjs","gitHead":"3b0a6b672e7a877c4fdf087acd3fca41687c1071","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"^0.2.1","@anio-fs/remove":"^4.0.3","@anio-fs/scandir":"^4.2.1","@vipen/target-js":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.1.2_1712300237888_0.7194377350547845","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"@anio-fs/clean","version":"1.1.4","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@1.1.4","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"07aa6a0e66cec779951dd86ca810cf282a069e28","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-1.1.4.tgz","fileCount":7,"integrity":"sha512-jfDzXmtYer475WEQ07lQ8NFojEgTTi5JNMCDTCHVHcPqs9sBUQUK8PuMhsL+sy3kvw0h50x+xNfv5ccpPLS/OA==","signatures":[{"sig":"MEYCIQDL8PUCOrskN2nHdN8mVj/t5ZzeW+iyWycxITf7ZRz4dgIhAI6f3p652YZ8e77Yj1ILXBM3WqPLhdNPillWHagx84Lv","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@1.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39205},"main":"./dist/package.min.mjs","gitHead":"0895ce26dfce945a8273a8fe1a34bfa90d876519","scripts":{"prepare":"vipen ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.2","_hasShrinkwrap":false,"devDependencies":{"vipen":"0.2.1","@anio-fs/remove":"^4.0.3","@anio-fs/scandir":"^4.2.1","@vipen/target-js":"^0.17.0"},"_npmOperationalInternal":{"tmp":"tmp/clean_1.1.4_1712352504201_0.20223257692137442","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@anio-fs/clean","version":"2.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@2.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"3bc0cbdc571834a15139bddccf686cbc34a5b08f","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-2.0.0.tgz","fileCount":7,"integrity":"sha512-xPPtcYYQAPTJ0mJVVqIp66uF2k/IJEO6jxXflHnYjP7E4z/B8FSUe8Ag3ILgf0Vwug1LYCRHIyQjUBYLheGn0w==","signatures":[{"sig":"MEQCIFrxWT+GXDp8gifKKJWxtM9GqPe2qeYtngDSWte62gqeAiBXc7NjudwkTUNlxIL1CTSjlj2MZ40SXLzDtixAT7NyLw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":39213},"main":"./dist/package.min.mjs","gitHead":"4e5d5ec1515ba8439c5b61bf1ff0cfc6775b3606","scripts":{"prepare":"fourtune ."},"typings":"./dist/index.d.ts","_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.3","_hasShrinkwrap":false,"devDependencies":{"fourtune":"^0.0.1","@anio-fs/remove":"^5.0.0","@anio-fs/scandir":"^5.0.1","@fourtune/realm-js":"^0.1.0"},"_npmOperationalInternal":{"tmp":"tmp/clean_2.0.0_1726852476085_0.3043139660928589","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@anio-fs/clean","version":"3.0.0","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","_id":"@anio-fs/clean@3.0.0","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"homepage":"https://github.com/anio-fs-org/clean#readme","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"dist":{"shasum":"3f48c19ebae9c21001b932e610b718ceb48b6aac","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-3.0.0.tgz","fileCount":10,"integrity":"sha512-LpptpDQtqVKZVJ1qRf3ozG9ym1iNU6EvXY85OI8RVg8lTwhNufEQpJ+qOu8jGpH4cw8Ph9s1WyLXLg+k3/Ol2A==","signatures":[{"sig":"MEQCIE0ABNJEFUmkDMi74Wjm2nAYOfKAuSgRH+FB6BCEW22cAiB77LRXqYmVCW9Tucn23+6zD+LL6nXYvhb1K7xa8wDzpQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":151377},"type":"module","exports":{".":{"types":"./dist/default/index.d.mts","import":"./dist/default/index.min.mjs"}},"gitHead":"e8a93a25a3a714829396e2a614ec13388e1524b6","scripts":{"prepare":"fourtune ."},"_npmUser":{"name":"exory2024","email":"exory@anio.software"},"repository":{"url":"git+https://github.com/anio-fs-org/clean.git","type":"git"},"_npmVersion":"10.5.0","description":"Clean a directory.","directories":{},"_nodeVersion":"21.7.3","_hasShrinkwrap":false,"devDependencies":{"fourtune":"^0.600.0","@fourtune/core":"^0.100.0","@anio-fs/remove":"^7.0.0","@anio-fs/scandir":"^8.0.0","@fourtune/realm-js":"^0.800.0-alpha.2"},"_npmOperationalInternal":{"tmp":"tmp/clean_3.0.0_1731176908253_0.11118289647092916","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"@anio-fs/clean","type":"module","version":"4.0.0","description":"Clean a directory.","exports":{".":{"import":"./dist/default/index.min.mjs","types":"./dist/default/index.d.mts"}},"author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anio-fs-org/clean.git"},"devDependencies":{"@anio-fs/remove":"^8.0.0","@anio-fs/scandir":"^9.0.0","@fourtune/core":"^0.100.0","@fourtune/realm-js":"^0.900.0-alpha.1","fourtune":"^0.800.0"},"scripts":{"prepare":"fourtune ."},"_id":"@anio-fs/clean@4.0.0","gitHead":"3894f24d0d4f3016c6a0b197dafe059014f9fe80","bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"homepage":"https://github.com/anio-fs-org/clean#readme","_nodeVersion":"21.7.3","_npmVersion":"10.5.0","dist":{"integrity":"sha512-4GsRu8Ktr4l5Le447Y+565MQ/aYXgvn2DCquyuhS+H4SQs5z9Rxj80a/LfzfF2y5v9AMsTpIMhe4SrLi+suj4A==","shasum":"79f0ea21aa6a770cd92acc0f39b308127a166e9b","tarball":"https://registry.npmjs.org/@anio-fs/clean/-/clean-4.0.0.tgz","fileCount":10,"unpackedSize":151377,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-fs%2fclean@4.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDx1iMmnbqT/yd5RpjI+HQ29ExxdBPKvhhq3Ai640V7jAIhAKIR4UVutVzqPs7QnoIKkufV4FDQEXtA8969THuxXsWP"}]},"_npmUser":{"name":"exory2024","email":"exory@anio.software"},"directories":{},"maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/clean_4.0.0_1731182738412_0.249345104958562"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-05T00:53:08.076Z","modified":"2024-11-09T20:05:39.053Z","1.0.0":"2024-04-05T00:53:08.337Z","1.0.1":"2024-04-05T02:50:52.650Z","1.1.0":"2024-04-05T03:22:17.811Z","1.1.1":"2024-04-05T03:28:21.879Z","1.1.2":"2024-04-05T06:57:18.055Z","1.1.4":"2024-04-05T21:28:24.352Z","2.0.0":"2024-09-20T17:14:36.286Z","3.0.0":"2024-11-09T18:28:28.434Z","4.0.0":"2024-11-09T20:05:38.591Z"},"bugs":{"url":"https://github.com/anio-fs-org/clean/issues"},"author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","homepage":"https://github.com/anio-fs-org/clean#readme","repository":{"type":"git","url":"git+https://github.com/anio-fs-org/clean.git"},"description":"Clean a directory.","maintainers":[{"name":"exory2024","email":"exory@anio.software"}],"readme":"# @anio-fs/clean\n\nClean a directory.\n\n```js\nimport {clean, cleanSync} from \"@anio-fs/clean\"\n\nawait clean(\"./dir/\")\n\n//\n// delete everything except root .gitkeep file\n//\nawait clean(\"./dir/\", {\n\tpreserve(entry) {\n\t\treturn entry.relative_path === \".gitkeep\"\n\t}\n})\n```\n","readmeFilename":"README.md"}