default-uid

2.0.0 • Public • Published

default-uid

Get the system default UID (User ID)

Install

$ npm install default-uid

Usage

import defaultUid from 'default-uid';

// On macOS
defaultUid();
//=> 501

defaultUid('linux');
//=> 1000

API

defaultUid(platform?)

platform

Type: string
Default: process.platform

One of the supported Node.js platforms.

Package Sidebar

Install

npm i default-uid

Weekly Downloads

211,347

Version

2.0.0

License

MIT

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus