Sha256: 1cbab72f53316e0997d014579384ad715731e1e701ab0f2b76667161a16f16ff

Contents?: true

Size: 429 Bytes

Versions: 96

Compression:

Stored size: 429 Bytes

Contents

declare const pathExists: {
	/**
	Check if a path exists.

	@returns Whether the path exists.

	@example
	```
	// foo.ts
	import pathExists = require('path-exists');

	(async () => {
		console.log(await pathExists('foo.ts'));
		//=> true
	})();
	```
	*/
	(path: string): Promise<boolean>;

	/**
	Synchronously check if a path exists.

	@returns Whether the path exists.
	*/
	sync(path: string): boolean;
};

export = pathExists;

Version data entries

96 entries across 89 versions & 11 rubygems

Version Path
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/find-cache-dir/node_modules/path-exists/index.d.ts
trusty-cms-5.0.1 node_modules/path-exists/index.d.ts
trusty-cms-4.3.5 node_modules/path-exists/index.d.ts
trusty-cms-5.0.0 node_modules/path-exists/index.d.ts
isomorfeus-puppetmaster-0.5.2 node_modules/path-exists/index.d.ts
isomorfeus-puppetmaster-0.5.1 node_modules/path-exists/index.d.ts
isomorfeus-puppetmaster-0.5.0 node_modules/path-exists/index.d.ts
trusty-cms-4.3.4 node_modules/path-exists/index.d.ts
trusty-cms-4.3.3 node_modules/path-exists/index.d.ts
trusty-cms-4.3.2 node_modules/path-exists/index.d.ts
trusty-cms-4.3.1 node_modules/path-exists/index.d.ts
trusty-cms-4.3 node_modules/path-exists/index.d.ts
trusty-cms-4.2.3 node_modules/path-exists/index.d.ts
epuber-stylus-source-0.54.8 vendor/node_modules/path-exists/index.d.ts
tang-0.2.1 spec/tang_app/node_modules/compression-webpack-plugin/node_modules/path-exists/index.d.ts
tang-0.2.1 spec/tang_app/node_modules/terser-webpack-plugin/node_modules/path-exists/index.d.ts
trusty-cms-4.2.2 node_modules/path-exists/index.d.ts
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/find-cache-dir/node_modules/path-exists/index.d.ts
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/find-cache-dir/node_modules/path-exists/index.d.ts
ruby2js-4.0.4 lib/tasks/testrails/node_modules/find-cache-dir/node_modules/path-exists/index.d.ts