包详细信息

default-uid

sindresorhus1.3mMIT2.0.0

Get the system default UID

uid, user, id, identifier

自述文件

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.