1.0.0 • Published 4 years ago

browsefy v1.0.0

Weekly downloads
156
License
MIT
Repository
github
Last release
4 years ago

Browsefy

npm bundlephobia npm Travis (.org) PRs Welcome NPM

About

Browsefy is a lightweight browser detector with the size of 770B.

Install

With package manager:

$ npm install browsefy

# OR

$ yarn add browsefy

With CDN:

<script src="https://unpkg.com/browsefy@1.0.0/dist/browsefy.umd.js"></script>

Usage

const result = browsefy();

// Example output for result:
{
  browser: 'Chrome',
  os: 'iOS',
  platform: 'mobile',
  model: 'iPhone'
}

Also see the example.

Contributing

Contributions are welcome!

  1. Fork it.
  2. Create your feature branch: git checkout -b my-new-feature.
  3. Commit your changes: git commit -am 'Adds some feature'.
  4. Push to the branch: git push origin my-new-feature.
  5. Submit a pull request.

Or open an issue.

License

Licensed under the MIT License.