Browsefy is a lightweight browser detector with the size of 770B.
With package manager:
$ npm install browsefy
# OR
$ yarn add browsefy
With CDN:
<script src="https://unpkg.com/[email protected]/dist/browsefy.umd.js"></script>
const result = browsefy();
// Example output for result:
{
browser: 'Chrome',
os: 'iOS',
platform: 'mobile',
model: 'iPhone'
}
Also see the example.
Contributions are welcome!
git checkout -b my-new-feature
.git commit -am 'Adds some feature'
.git push origin my-new-feature
.Or open an issue.
Licensed under the MIT License.