Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

mount-point

kevva388.8kMIT3.0.0

Get the mount point for a file

df, disk, mount

readme

mount-point Build Status

Get the mount point for a file

Install

$ npm install --save mount-point

Usage

const mountPoint = require('mount-point');

mountPoint('foo.tar.gz').then(mount => {
    console.log(mount);
    //=> '/'
});
  • df - Get free disk space info from df -kP

License

MIT © Kevin Mårtensson