@cjser/default-uid
v2.0.0-cjser.2
Published
Get the system default UID
Downloads
76
Maintainers
Readme
default-uid
Get the system default UID (User ID)
Install
$ npm install default-uidUsage
import defaultUid from 'default-uid';
// On macOS
defaultUid();
//=> 501
defaultUid('linux');
//=> 1000API
defaultUid(platform?)
platform
Type: string
Default: process.platform
One of the supported Node.js platforms.
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/default-uid
