mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
9 lines
295 B
JavaScript
9 lines
295 B
JavaScript
var Gun = require('../../index');
|
|
|
|
var location = {host:"localhost"};
|
|
|
|
var gun = Gun( { file: 'read.json', peers: ['http://' + location.host + ':8765/gun'] });
|
|
|
|
gun.get( 'data' ).path('stuff').map(function(val,field){ console.log( field, "=", val ); } );
|
|
|
|
console.log( "done... wait forever?" ); |