liugenpeng / file-exists-helper

Check if a file exists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

file-exits

Check if a file exists

install

    npm install --save file-exists-helper

Usage

  const checkHelper = require('file-exists-helper');

  checkHelper.check('./hello.txt', function(flag){
  	console.log(flag);
  })


  var flag2 = checkHelper.checkSync('./hello.txt');

About

Check if a file exists

License:GNU General Public License v3.0


Languages

Language:JavaScript 100.0%