UNPKG
telehash
Version:
latest (0.4.18)
0.4.18
0.4.17
0.4.16
0.4.15
0.4.14
0.4.13
0.4.12
0.4.11
0.4.10
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.0
0.3.31
0.3.30
0.3.29
0.3.28
0.3.27
0.3.26
0.3.25
0.3.23
0.3.22
0.3.20
0.3.19
0.3.18
0.3.17
0.3.16
0.3.15
0.2.14
0.2.12
0.2.11
0.2.8
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.11
0.1.10
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.61
0.0.60
0.0.59
0.0.58
0.0.57
0.0.56
0.0.55
0.0.54
0.0.53
0.0.52
0.0.51
0.0.50
0.0.49
0.0.48
0.0.47
0.0.46
0.0.45
0.0.44
0.0.0
A telehash library for node and browserify
github.com/telehash/telehash-js
telehash/telehash-js
telehash
/
bin
/
idgen.js
15 lines
(9 loc)
•
275 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env node
var
telehash =
require
(
'..'
); telehash.
generate
(
function
(
err, id
){
if
(err)
return
console
.
error
(err); telehash.
mesh
({
id
:id},
function
(
err, mesh
){
if
(err)
return
console
.
error
(err);
console
.
log
(
"SUCCESS"
,mesh.
uri
(),mesh.
json
()); }); });