Nightmarish Pawnshop Mystic
Introducing npm Teams! Private packages + team management tools.Learn more »

stattic-pstat

0.1.0 • Public • Published

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
  // ...
}
 

:)

Install

npm i stattic-pstat

DownloadsWeekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • avatar