{"_id":"@anio-node-foundation/fs-get-path-type","_rev":"3-0ca9b49213df29b298d8f331c001b7f3","name":"@anio-node-foundation/fs-get-path-type","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@anio-node-foundation/fs-get-path-type","version":"1.0.0","description":"Determine the type of a path.","main":"./dist/package.mjs","author":{"name":"Anio Software","email":"info@anio-software.de"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anio-node-foundation/fs-get-path-type.git"},"devDependencies":{"@anio-node-foundation/fs-api":"^2.0.1","@anio-software/npm-package-bundler":"^1.0.0"},"scripts":{"prepare":"npm-package-bundler ."},"_id":"@anio-node-foundation/fs-get-path-type@1.0.0","gitHead":"ef72ba264287615d6918ad6974310bce2eab8e81","bugs":{"url":"https://github.com/anio-node-foundation/fs-get-path-type/issues"},"homepage":"https://github.com/anio-node-foundation/fs-get-path-type#readme","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-cj+DmyLfV2sA4SZ+MBAAu815FnnRz3hIOXsWibxLP50gpvwm0BrJ+vl7OxZ8lwcMTR66jfl/IasZQs49f2AuJQ==","shasum":"ecc7e255b7f9eb923c2188060457d159b6c72cfd","tarball":"https://registry.npmjs.org/@anio-node-foundation/fs-get-path-type/-/fs-get-path-type-1.0.0.tgz","fileCount":3,"unpackedSize":7607,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-node-foundation%2ffs-get-path-type@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDiA56YwBnKarXV4EzNqCs1hAs6Pkl8rhTYJjtqM0V99gIhAJvQOJ8kd6un20G7v5H6fn9QS4JKl5ZI7aETum+q5LYW"}]},"_npmUser":{"name":"dasdeo","email":"mark@anio.software"},"directories":{},"maintainers":[{"name":"dasdeo","email":"mark@anio.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-get-path-type_1.0.0_1709485002227_0.6716211456860879"},"_hasShrinkwrap":false},"1.0.1":{"name":"@anio-node-foundation/fs-get-path-type","version":"1.0.1","description":"Determine the type of a path.","main":"./dist/package.mjs","author":{"name":"Anio Software","email":"info@anio-software.de"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anio-node-foundation/fs-get-path-type.git"},"devDependencies":{"@anio-node-foundation/fs-api":"^2.1.0","@anio-software/npm-package-bundler":"^1.0.0"},"scripts":{"prepare":"npm-package-bundler ."},"_id":"@anio-node-foundation/fs-get-path-type@1.0.1","gitHead":"b9b5cba3f64403a86ed094f744366cc6014a35ea","bugs":{"url":"https://github.com/anio-node-foundation/fs-get-path-type/issues"},"homepage":"https://github.com/anio-node-foundation/fs-get-path-type#readme","_nodeVersion":"21.6.2","_npmVersion":"10.2.4","dist":{"integrity":"sha512-nL1EjoUYufjyp+4QRqakgDOGTCH7s3YsOZYGR60hEGFRuJ/fTPPRaUEnRBzkEGO92k2nRxoA96E9bRMKSqGLZg==","shasum":"9e6195b48a1014cee919fc7d6c94673ca0f27667","tarball":"https://registry.npmjs.org/@anio-node-foundation/fs-get-path-type/-/fs-get-path-type-1.0.1.tgz","fileCount":3,"unpackedSize":8477,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-node-foundation%2ffs-get-path-type@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2aDpPeAZGMDIivgL0eZmtan2zIfFQqNv8BmJ6fYNZGQIgV9fcSgerYX+wo1mZlpMUrJod85+DdUEqQeGtdYhLRzA="}]},"_npmUser":{"name":"dasdeo","email":"mark@anio.software"},"directories":{},"maintainers":[{"name":"dasdeo","email":"mark@anio.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-get-path-type_1.0.1_1709486908802_0.24993946467583883"},"_hasShrinkwrap":false},"2.0.0":{"name":"@anio-node-foundation/fs-get-path-type","version":"2.0.0","description":"Determine the type of a path.","main":"./build/package.mjs","author":{"name":"Anio Software","email":"info@anio.software"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/anio-node-foundation/fs-get-path-type.git"},"devDependencies":{"@anio-node-foundation/fs-api":"^3.0.0","@vipen/target-js":"^0.7.0","vipen":"^0.1.0"},"scripts":{"prepare":"vipen ."},"_id":"@anio-node-foundation/fs-get-path-type@2.0.0","gitHead":"21cf073e4cc1f248e9924d3015f38b6f8cfb66a6","bugs":{"url":"https://github.com/anio-node-foundation/fs-get-path-type/issues"},"homepage":"https://github.com/anio-node-foundation/fs-get-path-type#readme","_nodeVersion":"21.7.1","_npmVersion":"10.5.0","dist":{"integrity":"sha512-zZ/VxvFesbOZl2+AxkwESF/VHpSxGqw63RikSbfuEqFCUaqt8xHVZgJb9neZu9dgPBGnS70zGyMBhHyCgubiKg==","shasum":"d2caa74ba40ad6123605d7e87c101b9d543a8d72","tarball":"https://registry.npmjs.org/@anio-node-foundation/fs-get-path-type/-/fs-get-path-type-2.0.0.tgz","fileCount":3,"unpackedSize":8491,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anio-node-foundation%2ffs-get-path-type@2.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIElVuaU06XtD8Dm3/aHhU5A/wBW9nwDixK8RBmJFQyU+AiEA1yxl4WgeXNQnxH5a3f5BTgCqKI01hfkFn7ak5wuanA4="}]},"_npmUser":{"name":"exory2024","email":"exory@anio.software"},"directories":{},"maintainers":[{"name":"exory2024","email":"exory@anio.software"},{"name":"dasdeo","email":"mark@anio.software"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/fs-get-path-type_2.0.0_1711404287330_0.5500950733301586"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-03T16:56:42.157Z","1.0.0":"2024-03-03T16:56:42.377Z","modified":"2024-03-25T22:04:48.198Z","1.0.1":"2024-03-03T17:28:29.024Z","2.0.0":"2024-03-25T22:04:47.480Z"},"maintainers":[{"name":"exory2024","email":"exory@anio.software"},{"name":"dasdeo","email":"mark@anio.software"}],"description":"Determine the type of a path.","homepage":"https://github.com/anio-node-foundation/fs-get-path-type#readme","repository":{"type":"git","url":"git+https://github.com/anio-node-foundation/fs-get-path-type.git"},"author":{"name":"Anio Software","email":"info@anio.software"},"bugs":{"url":"https://github.com/anio-node-foundation/fs-get-path-type/issues"},"license":"MIT","readme":"# @anio-node-foundation/fs-get-path-type\n\nDetermine the type of a path.\n\n|Type|Return value|\n|---|---|\n|Regular File|`file`|\n|Regular Directory|`dir`|\n|Link to a file|`link->file`|\n|Link to a directory|`link->dir`|\n|Dangling link|`link->broken`|\n|Non existing path|`false`|\n\n```js\nimport fs from \"node:fs\"\nimport fsGetPathType from \"@anio-node-foundation/fs-get-path-type\"\n\nconst entries = fs.readdirSync(\"examples/files\")\n\nfor (const entry of entries) {\n\tconsole.log(entry, await fsGetPathType(\"examples\", \"files\", entry))\n}\n\nconsole.log(await fsGetPathType(\"/non/existing/path\"))\n```\n","readmeFilename":"README.md"}