testnodekit
v0.1.76
Published
This package consolidates existing CLI tools, such as `hpdevkit` and `evdevkit`, along with Evernode development-related npm packages, into a single development kit. Depending on the installation mode, it can function either as a CLI tool or as a composit
Downloads
517
Readme
Evernode All-in-One Developer Kit
This package consolidates existing CLI tools, such as hpdevkit and evdevkit, along with Evernode development-related npm packages, into a single development kit. Depending on the installation mode, it can function either as a CLI tool or as a composite npm package.
Install as a CLI Tool (Global)
Prerequisites
The Evernode Kit requires the installation of Node.js on your development machine, as well as Docker to function as a CLI tool.
Cross-Platform Support
This is a global npm package that supports both Linux and Windows.
- Install the prerequisites.
- Run the following command to install
evernodeon your machine:npm install evernode -g
Usage
Once installed as a CLI tool, use the evernodecli command to interact with the kit. To view the available commands, run:
evernodecli helpUpdates
To update evernodecli to the latest version, run one of the following commands:
evernodecli updateUninstall
To uninstall evernodecli:
evernodecli uninstallNote: On Linux platforms, for installation, updates, and uninstallation, you may need root privileges. Prefix the above commands with sudo.
Install as an npm Package (Local)
Prerequisites
The Evernode Kit requires the installation of Node.js on your development machine.
Usage
- Install the prerequisites.
- Create a directory and run the
npm initcommand to initialize a Node.js workspace. - Run the following command to install
evernodelocally:npm install evernode - In your Node.js file, require the package as follows:
/* You can use this library to access the following built-in npm packages: - EvernodeClient: evernode-js-client - HotPocketClient: hotpocket-js-client - HotPocketContract: hotpocket-nodejs-contract - EverPocketContract: everpocket-nodejs-contract Example usage: const { EvernodeClient, HotPocketClient, HotPocketContract, EverPocketContract } = require('evernode'); */ const { EvernodeClient } = require('evernode'); async function main() { await EvernodeClient.Defaults.useNetwork('testnet'); governorAddress = EvernodeClient.Defaults.values.governorAddress; console.log('Governor address:', governorAddress); } main()
Updates
To update evernode to the latest version, run:
npm update evernode