default-uid

Get the system default UID

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
default-uid
2.0.0a year ago8 years agoMinified + gzip package size for default-uid in KB

Readme

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.