JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://localhost:8080/dist/index.js"></script>
<pre></pre>
JavaScript
var cc = new nsd.CryptoClient({
transformPromise: promise => {
var d = jQuery.Deferred();
promise.then(d.resolve, d.reject, d.notify);
return d.promise();
}
});
cc.open({
type: 'RSA',
profile: 'profile-1'
}).then(x => {
$('pre').text(JSON.stringify(x, null, 2));
});