yarn add computer-name
const computerName = require('computer-name')
computerName()
//=> My-MacbookPro
On Linux it simply returns os.hostname()
, PR is welcome for this :)
- 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
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