platform.js alternatives and similar libraries
Based on the "Misc" category.
Alternatively, view platform.js alternatives based on common mentions on social networks and blogs.
-
picturefill
A responsive image polyfill for <picture>, srcset, sizes, and more -
list.js
The perfect library for adding search, sort, filters and flexibility to tables, lists and various HTML elements. Built to be invisible and work on existing HTML. -
InversifyJS
A powerful and lightweight inversion of control container for JavaScript & Node.js apps powered by TypeScript. -
Autotrack
Automatic and enhanced Google Analytics tracking for common user interactions on the web. -
mixitup
A high-performance, dependency-free library for animated filtering, sorting, insertion, removal and more -
surveyjs
Free Open-Source JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout that lets you load and run multiple web forms, or build your own self-hosted form management system, retaining all sensitive data on your servers. You have total freedom of choice as to the backend, because any server + database combination is fully compatible. -
grid
Drag and drop library for two-dimensional, resizable and responsive lists -
json3
A modern JSON implementation compatible with nearly all JavaScript platforms. -
BitSet.js
An arbitrary size Bit-Vector implementation in JavaScript -
jquery.vibrate.js
:heavy_dollar_sign: Vibration API Wrappers -
Selectable
Touch enabled selectable plugin inspired by the jQuery UI widget. -
Ditox.js
Powerful dependency injection container for building modular apps. -
Dandy UI
Minimalistic UI (boxes, colored text, menu and some more) for Node.js
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of platform.js or a related project?
README
Platform.js v1.3.6
A platform detection library that works on nearly all JavaScript platforms.
Disclaimer
Platform.js is for informational purposes only & not intended as a substitution for feature detection/inference checks.
Documentation
- doc/README.md
- wiki/Changelog
- wiki/Roadmap
- platform.js demo (See also whatsmyua.info for comparisons between platform.js and other platform detection libraries)
Installation
In a browser:
<script src="platform.js"></script>
In an AMD loader:
require(['platform'], function(platform) {/*…*/});
Using npm:
$ npm i --save platform
In Node.js:
var platform = require('platform');
Usage example:
// on IE10 x86 platform preview running in IE7 compatibility mode on Windows 7 64 bit edition
platform.name; // 'IE'
platform.version; // '10.0'
platform.layout; // 'Trident'
platform.os; // 'Windows Server 2008 R2 / 7 x64'
platform.description; // 'IE 10.0 x86 (platform preview; running in IE 7 mode) on Windows Server 2008 R2 / 7 x64'
// or on an iPad
platform.name; // 'Safari'
platform.version; // '5.1'
platform.product; // 'iPad'
platform.manufacturer; // 'Apple'
platform.layout; // 'WebKit'
platform.os; // 'iOS 5.0'
platform.description; // 'Safari 5.1 on Apple iPad (iOS 5.0)'
// or parsing a given UA string
var info = platform.parse('Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7.2; en; rv:2.0) Gecko/20100101 Firefox/4.0 Opera 11.52');
info.name; // 'Opera'
info.version; // '11.52'
info.layout; // 'Presto'
info.os; // 'Mac OS X 10.7.2'
info.description; // 'Opera 11.52 (identifying as Firefox 4.0) on Mac OS X 10.7.2'
Support
Tested in Chrome 82-83, Firefox 77-78, IE 11, Edge 82-83, Safari 12-13, Node.js 4-14, & PhantomJS 2.1.1.
BestieJS
Platform.js is part of the BestieJS “Best in Class” module collection. This means we promote solid browser/environment support, ES5+ precedents, unit testing, & plenty of documentation.