truffle-export-abi

1.0.1 • Public • Published

truffle-export-abi

Simple tool to extract ABI from truffle build/ directory to a single file. This is a trivial tool but it can be handy when you're debugging your contract.

Install

$ npm install -g truffle-export-abi

CLI help

Example: truffle-export-abi -d /home/user/myproject/build/contracts/ -o /home/user/myproject/build/abi.json -v
Options:
   -d / --directory: location of the build files, [build/contracts] by default
   -o / --output: output file, [build/ABI.json] by default
   -v / --verbose

Build, run, example

# Setup the project 
$ npm install

I included a stripped example of a ERC721 token files, you can ru

node index.js -v -d example/ -o abi.json

Readme

Keywords

none

Package Sidebar

Install

npm i truffle-export-abi

Weekly Downloads

35

Version

1.0.1

License

MIT

Unpacked Size

26.9 kB

Total Files

7

Last publish

Collaborators

  • maxme