Skip to content

Get the maximum permitted length of a path of a Unix domain socket

License

Notifications You must be signed in to change notification settings

sindresorhus/unix-path-max

Repository files navigation

unix-path-max

Get the maximum permitted length of a path of a Unix domain socket

Does not work on Windows.

Install

$ npm install unix-path-max

Usage

import {unixPathMax} from 'unix-path-max';

console.log(await unixPathMax());
//=> 104

API

unixPathMax()

Returns a Promise for the maximum permitted length of a path.

unixPathMaxSync()

Returns the maximum permitted length of a path.

CLI

$ npm install --global unix-path-max
$ unix-path-max
104