Package Exports
- long
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 (long) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Long
A Long class for representing a 64-bit two's-complement integer value derived from the Closure Library for stand-alone use.
Features
- CommonJS compatible
- RequireJS/AMD compatible
- Shim compatible (include the script, then use var ByteBuffer = dcodeIO.ByteBuffer;)
- node.js compatible, also available via npm
- Fully documented using jsdoc3
- Zero production dependencies
- Small footprint
Usage
node.js / CommonJS
Install: npm install long
var Long = require("Long");
var longVal = new Long(0xFFFFFFFF, 0x7FFFFFFF);
console.log(longVal.toString());
...RequireJS / AMD
require(["path/to/Long.js"], function(Long) {
var longVal = new Long(0xFFFFFFFF, 0x7FFFFFFF);
console.log(longVal.toString());
});Browser / shim
<script src="//raw.github.com/dcodeIO/Long.js/master/Long.min.js"></script>var Long = dcodeIO.Long;
var longVal = new Long(0xFFFFFFFF, 0x7FFFFFFF);
alert(longVal.toString());Documentation
Downloads
License
Apache License, Version 2.0 - http://www.apache.org/licenses/LICENSE-2.0.html