add toJSON and fromJSOn and cli to quickly generate

This commit is contained in:
David Dias
2016-05-23 15:25:30 +01:00
parent 4afbedb525
commit b358530dfb
4 changed files with 40 additions and 9 deletions

7
src/bin.js Executable file
View File

@ -0,0 +1,7 @@
#!/usr/local/bin/node
'use strict'
const PeerId = require('./index.js')
console.log(JSON.stringify(PeerId.create().toJSON(), null, ' '))