default-uid
Get the system default UID
Last updated 10 years ago by sindresorhus .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install default-uid 
SYNC missed versions from official npm registry.

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.

Current Tags

  • 2.0.0                                ...           latest (4 years ago)

2 Versions

  • 2.0.0                                ...           4 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 0
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE