# getuid
> Return the numeric user identity of the calling process.
## Usage
```javascript
var getuid = require( '@stdlib/process/getuid' );
```
#### getuid()
Returns the numeric user identity of the calling process.
```javascript
var id = getuid();
```
## Notes
- The function **only** returns an `integer` user identity on POSIX platforms. For all other platforms (e.g., Windows, browsers, and Android), the function returns `null`.
- See [getuid(2)][getuid].
## Examples
```javascript
var getuid = require( '@stdlib/process/getuid' );
var uid = getuid();
if ( uid === 0 ) {
console.log( 'Likely running as root.' );
} else {
console.log( 'uid: %d', uid );
}
```
[getuid]: http://man7.org/linux/man-pages/man2/getuid.2.html