npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

unix-path-max

2.0.0

@sindresorhus

npmHomeRepoSnykSocket
Downloads:6
$ npm install unix-path-max
DailyWeeklyMonthlyYearly

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