Socket
Socket
Sign inDemoInstall

web3-eth-ens

Package Overview
Dependencies
Maintainers
2
Versions
420
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3-eth-ens - npm Package Compare versions

Comparing version 1.0.0-beta.37 to 1.0.0-beta.38

dist/web3-eth-ens.cjs.js

40

package.json
{
"name": "web3-eth-ens",
"version": "1.0.0-beta.37",
"version": "1.0.0-beta.38",
"description": "ENS support for web3.",
"repository": "https://github.com/ethereum/web3.js/tree/master/packages/web3-eth-ens",
"license": "LGPL-3.0",
"main": "src/index.js",
"main": "dist/web3-eth-ens.cjs.js",
"module": "dist/web3-eth-ens.esm.js",
"browser": "dist/web3-eth-ens.umd.js",
"types": "types",
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"test": "jest",
"dtslint": "dtslint types --onlyTestTsNext"
},
"dependencies": {
"eth-ens-namehash": "2.0.8",
"underscore": "1.8.3",
"web3-core": "1.0.0-beta.37",
"web3-core-helpers": "1.0.0-beta.37",
"web3-core-promievent": "1.0.0-beta.37",
"web3-eth-abi": "1.0.0-beta.37",
"web3-eth-contract": "1.0.0-beta.37",
"web3-utils": "1.0.0-beta.37"
}
"lodash": "^4.17.11",
"web3-core": "1.0.0-beta.38",
"web3-core-helpers": "1.0.0-beta.38",
"web3-core-method": "1.0.0-beta.38",
"web3-core-promievent": "1.0.0-beta.38",
"web3-eth-abi": "1.0.0-beta.38",
"web3-eth-contract": "1.0.0-beta.38",
"web3-net": "1.0.0-beta.38",
"web3-providers": "1.0.0-beta.38",
"web3-utils": "1.0.0-beta.38"
},
"devDependencies": {
"dtslint": "^0.4.2",
"web3-eth-accounts": "1.0.0-beta.38"
},
"files": [
"dist",
"types/index.d.ts"
]
}

@@ -5,3 +5,3 @@ # web3-eth-ens

This is the contract package to be used in the `web3-eth` package.
This is the Ens package and it will be used in the `web3-eth` package.
Please read the [documentation][docs] for more.

@@ -11,4 +11,2 @@

### Node.js
```bash

@@ -18,29 +16,19 @@ npm install web3-eth-ens

### In the Browser
Build running the following in the [web3.js][repo] repository:
```bash
npm run-script build-all
```
Then include `dist/web3-eth-ens.js` and `dist/web3-eth.js` in your html file.
This will expose the `EthEns` object on the window object.
## Usage
```js
var eth = new Web3Eth(web3.currentProvider);
var ens = new EthEns(eth);
ens.getAddress('ethereum.eth').then(function (result) {
console.log(result);
});
import {Ens} from 'web3-eth-ens';
new Ens(
'ws://localhost:8546',
accounts,
{}
);
```
## Types
All the typescript typings are placed in the types folder.
[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/ethereum/web3.js
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc