mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-07-23 23:11:59 +00:00
15 lines
221 B
JavaScript
Executable File
15 lines
221 B
JavaScript
Executable File
#!/usr/local/bin/node
|
|
|
|
'use strict'
|
|
|
|
const PeerId = require('./index.js')
|
|
|
|
PeerId.create((err, id) => {
|
|
if (err) {
|
|
throw err
|
|
}
|
|
|
|
// eslint-disable-next-line
|
|
console.log(JSON.stringify(id.toJSON(), null, 2))
|
|
})
|