is-folder
is a simple library for NodeJS.
# run this from your Terminal
npm install is-folder
// add this import to your Typescript code
import { IsFolder } from "is-folder"
// will be either `true` or `false`
const dataExists = isFolder("my/path/to/the/folder");
Looking for more detailed documentation? You'll find it under the docs folder.