1.0.0 • Published 4 years ago

unix-socket-path v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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

1.0.0

4 years ago

0.0.0

4 years ago