computer-name
Install
yarn add computer-name
Usage
const computerName = //=> My-MacbookPro
Gotchas
On Linux it simply returns os.hostname()
, PR is welcome for this :)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
computer-name © EGOIST, Released under the MIT License.
Authored and maintained by EGOIST with help from contributors (list).
github.com/egoist · GitHub @EGOIST · Twitter @_egoistlily