Skip to content

Instantly share code, notes, and snippets.

View hbi-wallix's full-sized avatar

Henri hbi-wallix

View GitHub Profile
@hbi-wallix
hbi-wallix / hello-datapeps.js
Last active March 20, 2018 10:14
Hello, DataPeps
var DataPeps = require("datapeps-sdk");
global["TextEncoder"] = require('text-encoding').TextEncoder;
global["TextDecoder"] = require('text-encoding').TextDecoder;
global["XMLHttpRequest"] = require('xhr2');
global["WebSocket"] = require('ws');
global["btoa"] = require('btoa');
global["atob"] = require('atob');
DataPeps.configure("https://" + process.env.PEPSCRYPTO_HOST);