0.1.0 • Published 8 years ago

stattic-pstat v0.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

stattic-pstat

npm npm

Simple way for check if path exists and is a file/directory.

Example of use:

var pStat = require('stattic-pstat');

//Check if file exists
if(pStat.isFile('route/to/file.ext') === true)
{
  //Path exists and is a file, do something
  // ...
}

//Check if directory exists
if(pStat.isDir('route/to/dir') === true)
{
  //Path exists and is a directory, do something
  // ...
}

:)