Socket
Book a DemoInstallSign in
Socket

@laborx/command-ganache-plugin

Package Overview
Dependencies
Maintainers
5
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@laborx/command-ganache-plugin

Provides ganache plugin for node's Command

0.1.10
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
5
Weekly downloads
 
Created
Source

Ganache plugin for Command

Provides an extension of Ganache for Command.

Install

yarn add -D @laborx/command-ganache-plugin

Usage

  • Create testrpc.json (or with other config filename) and specify ganache configuration, for example:
{
  "network_id": 666,
  "host": "127.0.0.1",
  "port": 8546,
  "db_path": "./data/blockchain",
  "gasPrice": 1,
  "gasLimit": 8000000,
  "account_keys_path": "./test-accounts.json",
  "mnemonic": "brave dry ride escape panther wave wife coin input come cash survey"
}

Other options from ganache-cli specification could be added as-is.

CLI

Run from command line with the following syntax

npx -p @laborx/command-ganache-plugin ganache-runner ganache --config=./testrpc.json

or in package.json

{
  "scripts": {
    "ganache-runner": "ganache-runner",
    "ganache": "yarn ganache-runner ganache --config=./testrpc.json"
  }
}

From code

import { runGanache } from "@laborx/command-ganache-plugin";

const server = runGanache({ config: "./testrpc.json" })

FAQs

Package last updated on 07 Aug 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.