JSPM

computer-name

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7315
  • Score
    100M100P100Q158436F
  • License MIT

Get computer name, cross-platform.

Package Exports

  • computer-name

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (computer-name) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. 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