UNPKG

@spalger/kibana

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

6 lines (4 loc) 152 B
let relative = require('path').relative; module.exports = function pathContains(root, child) { return relative(child, root).slice(0, 2) !== '..'; };