Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)
}
})
```