unix-socket-path

1.0.0 • Public • Published

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

/unix-socket-path/

    Package Sidebar

    Install

    npm i unix-socket-path

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.08 kB

    Total Files

    4

    Last publish

    Collaborators

    • mafintosh