No description
Find a file
2020-11-26 23:31:21 +01:00
.github Create FUNDING.yml 2020-11-22 02:07:12 +01:00
dist Updates the size of the project 2020-01-30 21:09:51 +03:00
example Updates the size of the project 2020-01-30 21:09:51 +03:00
src Updates the size of the project 2020-01-30 21:09:51 +03:00
test Updates test file 2020-01-30 21:59:13 +03:00
.editorconfig Init the app 2020-01-25 23:31:10 +03:00
.gitattributes Init the app 2020-01-25 23:31:10 +03:00
.gitignore Updates .gitignore 2020-01-30 21:17:46 +03:00
.travis.yml Updates .travis.yml 2020-01-25 23:56:35 +03:00
LICENSE Init the app 2020-01-25 23:31:10 +03:00
package.json Update dependency standard to v16.0.3 2020-11-26 20:58:05 +00:00
README.md Update README.md 2020-01-30 21:43:25 +03:00
renovate.json Add renovate.json 2020-01-25 20:59:12 +00:00
yarn.lock Update dependency standard to v16.0.3 2020-11-26 20:58:05 +00:00

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.