mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-07-06 04:01:47 +00:00
add toJSON and fromJSOn and cli to quickly generate
This commit is contained in:
7
src/bin.js
Executable file
7
src/bin.js
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/local/bin/node
|
||||
|
||||
'use strict'
|
||||
|
||||
const PeerId = require('./index.js')
|
||||
|
||||
console.log(JSON.stringify(PeerId.create().toJSON(), null, ' '))
|
Reference in New Issue
Block a user