Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
1.0 KiB

  1. # universal-user-agent
  2. > Get a user agent string in both browser and node
  3. [![@latest](https://img.shields.io/npm/v/universal-user-agent.svg)](https://www.npmjs.com/package/universal-user-agent)
  4. [![Build Status](https://travis-ci.com/gr2m/universal-user-agent.svg?branch=master)](https://travis-ci.com/gr2m/universal-user-agent)
  5. [![Coverage Status](https://coveralls.io/repos/github/gr2m/universal-user-agent/badge.svg)](https://coveralls.io/github/gr2m/universal-user-agent)
  6. [![Greenkeeper](https://badges.greenkeeper.io/gr2m/universal-user-agent.svg)](https://greenkeeper.io/)
  7. ```js
  8. const getUserAgent = require('universal-user-agent')
  9. const userAgent = getUserAgent()
  10. // userAgent will look like this
  11. // in browser: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:61.0) Gecko/20100101 Firefox/61.0"
  12. // in node: Node.js/v8.9.4 (macOS High Sierra; x64)
  13. ```
  14. ## Credits
  15. The Node implementation was originally inspired by [default-user-agent](https://www.npmjs.com/package/default-user-agent).
  16. ## License
  17. [ISC](LICENSE.md)