Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates on README.md Format #5115

Merged
merged 6 commits into from
Jun 28, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<p align="center">
<img src="assets/logo/web3js.jpg" width="200" alt="web3.js" />
<p style="text-align: center;">
<img src="assets/logo/web3js.jpg" width="200" alt="web3.js">
</p>

# web3.js - Ethereum JavaScript API
Expand Down Expand Up @@ -56,10 +56,10 @@ UNPKG:
```js
// In Node.js
const Web3 = require('web3');

let web3 = new Web3('ws://localhost:8546');
const web3 = new Web3('ws://localhost:8546');
console.log(web3);
> {
// Output
{
eth: ... ,
shh: ... ,
utils: ...,
Expand Down Expand Up @@ -227,7 +227,7 @@ global.process = {

If you are using Ionic/Angular at a version >5 you may run into a build error in which modules `crypto` and `stream` are `undefined`

a work around for this is to go into your node-modules and at `/angular-cli-files/models/webpack-configs/browser.js` change the `node: false` to `node: {crypto: true, stream: true}` as mentioned [here](https://github.com/ethereum/web3.js/issues/2260#issuecomment-458519127)
a workaround for this is to go into your node-modules and at `/angular-cli-files/models/webpack-configs/browser.js` change the `node: false` to `node: {crypto: true, stream: true}` as mentioned [here](https://github.com/ethereum/web3.js/issues/2260#issuecomment-458519127)

Another variation of this problem was an [issue opned on angular-cli](https://github.com/angular/angular-cli/issues/1548)

Expand Down