Gathering detailed insights and metrics for @allaccessone/fetch-node-details
Gathering detailed insights and metrics for @allaccessone/fetch-node-details
npm install @allaccessone/fetch-node-details
Typescript
Module System
Min. Node Version
Node Version
NPM Version
Total Downloads
153
Last Day
5
Last Week
5
Last Month
5
Last Year
69
Minified
Minified + Gzipped
Latest Version
4.0.7
Package Id
@allaccessone/fetch-node-details@4.0.7
Unpacked Size
6.15 MB
Size
1.51 MB
File Count
17
NPM Version
9.3.1
Node Version
18.14.0
Publised On
04 Jul 2023
Cumulative downloads
Total Downloads
Last day
0%
5
Compared to previous day
Last week
0%
5
Compared to previous week
Last month
-28.6%
5
Compared to previous month
Last year
-17.9%
69
Compared to previous year
2
1
24
Use this package to fetches details about Torus nodes, from a specified Smart Contract that holds details about the list of nodes & network. This will dynamically get updates about the node list, allowing the front end to continue querying the different set of nodes after migrations.
This utility library serves to find the endpoints and public keys associated with the current set of qualified nodes, which are used for key lookups, key assignments, and key retrievals by other dependent libraries.
Promises
This module is distributed in 5 formats
esm
build dist/fetchNodeDetails.esm.js
in es6 formatcommonjs
build dist/fetchNodeDetails.cjs.js
in es5 formatcommonjs
build dist/fetchNodeDetails-bundled.cjs.js
in es5 format with problematic packages bundled (benefits non-webpack users)umd
build dist/fetchNodeDetails.umd.min.js
in es5 format without polyfilling corejs minifiednode
build dist/fetchNodeDetails-node.js
in es5 formatBy default, the appropriate format is used for your specified usecase You can use a different format (if you know what you're doing eg. node) by referencing the correct file
The cjs build is not polyfilled with core-js. It is upto the user to polyfill based on the browserlist they target
CDN's serve the non-core-js polyfilled version by default. You can use a different
jsdeliver
1<script src="https://cdn.jsdelivr.net/npm/@toruslabs/fetch-node-details"></script>
unpkg
1<script src="https://unpkg.com/@toruslabs/fetch-node-details"></script>
Add @toruslabs/fetch-node-details
to your project:
1import FetchNodeDetails from "@toruslabs/fetch-node-details"; 2 3const fetchNodeDetails = new FetchNodeDetails(); 4const nodeInfo = await fetchNodeDetails.getNodeDetails();
1const FetchNodeDetails = require("@toruslabs/fetch-node-details").default; 2 3const fetchNodeDetails = new FetchNodeDetails(); 4fetchNodeDetails.getNodeDetails().then((nodeInfo) => console.log(nodeInfo));
1// For Node.js 2const FetchNodeDetails = require("@toruslabs/fetch-node-details/dist/fetchNodeDetails-node.js").default; 3 4const fetchNodeDetails = new FetchNodeDetails(); 5fetchNodeDetails.getNodeDetails().then((nodeInfo) => console.log(nodeInfo));
@babel/runtime
Requires a .env file with the parameters in .env.development
No vulnerabilities found.
No security vulnerabilities found.