1 /* jshint devel:true */
3 console.log('Welcome to iotjs-www','\n\n');
5 // set up the base line..
6 // Using browserify to set up browser exports
7 var crypto = require('crypto-js');
8 var hash = require('object-hash');
9 var _ = require('underscore');
10 var ByteBuffer = require("bytebuffer");
18 // iot namespace main constructor
19 var iot = function(obj) {
20 if (obj instanceof iot) return obj;
21 if (!(this instanceof iot)) return new iot(obj);
25 // export iot to the global exports
26 if (typeof exports !== 'undefined') {
27 if (typeof module !== 'undefined' && module.exports) {
28 exports = module.exports = iot;
35 iot.baselinetest = function(){
37 console.log('its alive!!!');
41 console.log(hash('hello man'));
42 console.log(typeof hash('hello man'));
46 var p = new Pair(1,2);
47 console.log(p.toString());
51 var i = new IoTString('hello');
52 console.log(i.length());