JSPM

  • Created
  • Published
  • Downloads 180
  • Score
    100M100P100Q58883F
  • License MIT

Spec detection.

Package Exports

  • uupaa.spec.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uupaa.spec.js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Spec.js Build Status

npm

Spec detection.

Browser and NW.js(node-webkit)

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

var spec = new WebModule.Spec();
console.log(spec.USER_AGENT);   // "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36";
console.log(spec.BROWSER);      // "Chrome"

</script>

WebWorkers

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

Node.js

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