![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
ens-ipfs-resolver
Advanced tools
This package provides an api and an executable which resolves the content hash of an ENS domain. It uses local Ethereum- and IPFS nodes if available and otherwise defaults to public gateways.
npm i -g ens-ipfs-resolver
To import and create a resolver object:
const ensIpfsResolver = require('ens-ipfs-resolver')
let resolver = new ensIpfsResolver([options])
The default options are:
{
ethPort: 8545,
ipfsPort: 8080
}
resolver.ensToUrl(name : string) : Promise
resolver.ensToUrl("raksooo.eth")
.then(console.log)
// output: http://localhost:8080/ipfs/QmWeSMxMWpsrsJdBU6Zqc6DXZEf4WXHkPzBAdmPjmmHUna
resolver.ensToIpfsHash(name : string) : Promise
resolver.ensToIpfsHash("raksooo.eth")
.then(console.log)
// output: QmWeSMxMWpsrsJdBU6Zqc6DXZEf4WXHkPzBAdmPjmmHUna
Usage: ensipfs [options] <domain>
Options:
-e, --eth-rpc-port <n>
-i, --ipfs-port <n>
-h, --help
$ ensipfs raksooo.eth
http://localhost:8080/ipfs/QmWeSMxMWpsrsJdBU6Zqc6DXZEf4WXHkPzBAdmPjmmHUna
FAQs
Content resolver for Ethereum name service
We found that ens-ipfs-resolver demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.