mirror of
https://github.com/fluencelabs/js-peer-id
synced 2025-04-25 13:12:32 +00:00
update readme
This commit is contained in:
parent
6ad5d85f76
commit
a8e591525b
@ -28,9 +28,13 @@ The public key is a base64 encoded string of a protobuf containing an RSA DER bu
|
|||||||
const PeerId = require('peer-id')
|
const PeerId = require('peer-id')
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### In the Browser through Webpack
|
||||||
|
|
||||||
|
Follow our [webpack config](/webpack.config.js) example.
|
||||||
|
|
||||||
### In the Browser through browserify
|
### In the Browser through browserify
|
||||||
|
|
||||||
TODO: Figure out how to get this working with browserify and webpack. Browserify can't bundle our replacement of ```fs.readFileSync``` with ```require('buffer!./file')```.
|
> **WIP** Doesn't work out yet
|
||||||
|
|
||||||
### In the Browser through `<script>` tag
|
### In the Browser through `<script>` tag
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user