Files
js-peer-id/src/bin.js
Jacob Heun 8bcd9a880e chore: revert async dep change (#97)
* chore: revert async dep change

* chore: update async to 2.6.3
2019-07-23 13:32:46 +01:00

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))
})