Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

default-uid

1.0.0 • Public • Published

default-uid Build Status

Get the system default UID (User ID)

Install

$ npm install --save default-uid

Usage

var defaultUid = require('default-uid');
 
// on OS X
 
defaultUid();
//=> 501
 
defaultUid('linux');
//=> 1000

API

defaultUid([platform])

platform

Type: string
Default: process.platform

One of the supported Node platforms.

License

MIT © Sindre Sorhus

install

npm i default-uid

Downloadsweekly downloads

36,072

version

1.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability