Nabbing Pleasant Monads

    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.

    Install

    npm i default-uid

    DownloadsWeekly Downloads

    100,080

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.4 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus
    • silverwind