$ npm install mount-point
Get the mount point for a file
$ npm install --save mount-point
const mountPoint = require('mount-point'); mountPoint('foo.tar.gz').then(mount => { console.log(mount); //=> '/' });
df -kP
MIT © Kevin Mårtensson