exists-stat

WebJar for exists-stat

License

License

MIT
Categories

Categories

eXist Data Databases
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

exists-stat
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

exists-stat
WebJar for exists-stat
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/trentmwillis/exists-stat

Download exists-stat

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/exists-stat/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>exists-stat</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/exists-stat/
implementation 'org.webjars.npm:exists-stat:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/exists-stat/
implementation ("org.webjars.npm:exists-stat:1.0.0")
'org.webjars.npm:exists-stat:jar:1.0.0'
<dependency org="org.webjars.npm" name="exists-stat" rev="1.0.0">
  <artifact name="exists-stat" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='exists-stat', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "exists-stat" % "1.0.0"
[org.webjars.npm/exists-stat "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

exists-stat

Synchronously check if a path exists and returns its stats object if it does. Saves you from needing try-catch statements when trying to get stats information.

existsStat('exists-dir').isDirectory(); // true
existsStat('exists.js').isFile();       //true

existsStat('does-not-exist-dir'); // null
existsStat('does-not-exist.js');  // null

Versions

Version
1.0.0