UNPKG
elastic.js
Version:
latest (1.2.0)
1.2.0
1.1.1
1.1.0
1.0.0
Javascript API for ElasticSearch DSL
github.com/fullscale/elastic.js
fullscale/elastic.js
elastic.js
/
docs
/
rhino_modules
/
path
/
index.js
18 lines
(15 loc)
•
357 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module
.exports = { basename :
function
(path)
{ var parts =
path
.split(
'/'
); parts.pop();
path
= parts.join(
'/'
);
return
path
; }, existsSync:
function
(path)
{ var file = new java.
io
.File(
path
);
if
(file.isFile()) {
return
true
; }
return
false
; } };