UNPKG

elastic.js

Version:

Javascript API for ElasticSearch DSL

18 lines (15 loc) 357 B
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; } };