Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uupaa.spec.js

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uupaa.spec.js

Mobile Device Spec detection.

  • 3.2.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Spec.js Build Status

npm

Mobile Device Spec detection.

This module made of WebModule.

Documentation

Browser, NW.js and Electron

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/WebGLDetector.js"></script>
<script src="<module-dir>/lib/UserAgent.js"></script>
<script src="<module-dir>/lib/SpecCatalog.js"></script>
<script src="<module-dir>/lib/SpecCatalogFP.js"></script>
<script src="<module-dir>/lib/Spec.js"></script>
<script>

var ua = new UserAgent(); // iPhone 6
var spec = new Spec(ua);

spec.UNKNOWN            // -> false
spec.SOC                // -> "A8"
spec.GPU                // -> "POWERVR GX6450",
spec.RAM                // -> 1024
spec.BLE                // -> true
spec.NFC                // -> false
spec.ATOM               // -> false
spec.SIMD               // -> true
spec.H265_ENCODER       // -> false
spec.H265_DECODER       // -> false
spec.FORCE_TOUCH        // -> false
spec.FORCE_CLICK        // -> false
spec.MAX_THREADS        // -> 2
spec.MAX_TOUCH_POINTS   // -> 5
spec.MAX_TEXTURE_SIZE   // -> 16384
spec.GLES               // -> 3.1
spec.METAL              // -> 1.0
spec.VULKAN             // -> 0.0
spec.LOW_END            // -> false
spec.OUTMODED           // -> false

</script>

WebWorkers

importScripts("<module-dir>/lib/WebModule.js");
importScripts("<module-dir>/lib/WebGLDetector.js");
importScripts("<module-dir>/lib/UserAgent.js");
importScripts("<module-dir>/lib/SpecCatalog.js");
importScripts("<module-dir>/lib/SpecCatalogFP.js");
importScripts("<module-dir>/lib/Spec.js");

Node.js

require("<module-dir>/lib/WebModule.js");
require("<module-dir>/lib/WebGLDetector.js");
require("<module-dir>/lib/UserAgent.js");
require("<module-dir>/lib/SpecCatalog.js");
require("<module-dir>/lib/SpecCatalogFP.js");
require("<module-dir>/lib/Spec.js");

var ua = new UserAgent("DoCoMo/2.0 P07A3(c500;TB;W24H15)");
var spec = new Spec(ua);

spec.FP_TLS             // -> true
spec.FP_UTF8            // -> true
spec.FP_COOKIE          // -> true
spec.FP_CERT_SHA1       // -> true
spec.FP_MALFUNCTION     // -> true
spec.FP_FLASH_LITE      // -> 3.1
spec.FP_DISPLAY_LONG    // -> 662
spec.FP_DISPLAY_SHORT   // -> 480

Keywords

FAQs

Package last updated on 12 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc