File size: 331 Bytes
bc20498
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import * as fs from 'graceful-fs';
import resolvePath from '../utils/resolvePath';

export function exists () {
	const target = resolvePath( arguments );

	return new Promise( fulfil => {
		fs.exists( target, exists => fulfil( exists ) );
	});
}

export function existsSync () {
	return fs.existsSync( resolvePath( arguments ) );
}