mirror of
https://github.com/suyalcinkaya/browsefy.git
synced 2026-04-25 21:45:53 +03:00
No description
|
|
||
|---|---|---|
| .github | ||
| dist | ||
| example | ||
| src | ||
| test | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| LICENSE | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| yarn.lock | ||
Browsefy
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!
- Fork it.
- Create your feature branch:
git checkout -b my-new-feature. - Commit your changes:
git commit -am 'Adds some feature'. - Push to the branch:
git push origin my-new-feature. - Submit a pull request.
Or open an issue.
License
Licensed under the MIT License.