You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

computer-name

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

computer-name

Get computer name, cross-platform.

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
2.8K
-28.24%
Maintainers
1
Weekly downloads
 
Created
Source

computer-name

NPM version NPM downloads CircleCI donate chat

Install

yarn add computer-name

Usage

const computerName = require('computer-name')

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

FAQs

Package last updated on 21 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts