Permalink
Browse files

Change around hierarchy; support CommonsJS.

  • Loading branch information...
1 parent 1591439 commit 4753fb1a8deb8e2871d34dda049cb01958137f6b @pgriess committed May 22, 2010
Showing with 4 additions and 2 deletions.
  1. 0 {docs → }/LICENSE
  2. 0 {docs → }/README
  3. +4 −2 code/struct.js → jspack.js
View
0 docs/LICENSE → LICENSE
File renamed without changes.
View
0 docs/README → README
File renamed without changes.
View
6 code/struct.js → jspack.js
@@ -4,7 +4,7 @@
*/
// Utility object: Encode/Decode C-style binary primitives to/from octet arrays
-var Struct = new function ()
+function JSPack()
{
// Module-level (private) variables
var el, bBE = false, m = this;
@@ -247,4 +247,6 @@ var Struct = new function ()
}
return sum;
};
-}();
+};
+
+exports.jspack = new JSPack();

0 comments on commit 4753fb1

Please sign in to comment.