Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephnr/whoami
NPM Module for getting the logged in users name
https://github.com/stephnr/whoami
Last synced: 13 days ago
JSON representation
NPM Module for getting the logged in users name
- Host: GitHub
- URL: https://github.com/stephnr/whoami
- Owner: stephnr
- License: mit
- Created: 2015-07-05T20:25:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-26T03:39:09.000Z (over 9 years ago)
- Last Synced: 2024-10-04T21:57:57.350Z (about 1 month ago)
- Language: JavaScript
- Size: 160 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whoami
NPM Module for getting the logged in users nameSupported on:
[![Windows OS](https://img.shields.io/badge/OS-Windows-brightgreen.svg)]() [![Mac OS](https://img.shields.io/badge/OS-Mac-brightgreen.svg)]()
### Installation:
=> Run the following npm command:
```shell
npm install --save-dev whoami-exec
```=> Use it like so:
```js
var whoami = require('whoami-exec');var username = whoami();
```