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

Made by Antonio Ramirez

unix-socket-path

1.0.0

@mafintosh

npmHomeRepoSnykSocket
Downloads:0
$ npm install unix-socket-path
DailyWeeklyMonthlyYearly

unix-socket-path

Get a cross platform unix socket path

npm install unix-socket-path

Usage

const getSocketPath = require('unix-socket-path')

// returns /tmp/my-app.sock on linux
// returns /var/..../my-app.sock on mac
// returns \\.\pipe\my-app on windows
console.log(getSocketPath('my-app'))

License

MIT