Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rednexie/fs.exists
fs.exists function alternative
https://github.com/rednexie/fs.exists
Last synced: 17 days ago
JSON representation
fs.exists function alternative
- Host: GitHub
- URL: https://github.com/rednexie/fs.exists
- Owner: Rednexie
- License: unlicense
- Created: 2023-11-25T17:05:20.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-01-06T22:41:55.000Z (10 months ago)
- Last Synced: 2024-01-06T23:55:37.015Z (10 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
```js
const fs = require("./fs")
fs.exists("./file", function(err, data){
//if(err) console.error(err)
if(data){
console.log("The file exists")
process.exit(0)
}
else{
console.log("The file doesn't exist.")
process.exit(1)
}
})
```