npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

auditsmartcontract-cli

v1.2.3

Published

A CLI tool to audit smart contracts using OpenAI

Downloads

409

Readme

auditsmartcontract-cli

auditsmartcontract-cli is a command-line interface (CLI) tool for auditing smart contracts using OpenAI's analysis capabilities. It helps developers check their smart contracts for potential vulnerabilities and issues by leveraging AI-based audits.

Features

  • AI-Powered Auditing: Utilizes OpenAI's capabilities to analyze smart contract code.
  • Detailed Reports: Get detailed feedback and recommendations for improvement.
  • Easy to Use: Simple commands to quickly audit your smart contracts.

Installation

npm i auditsmartcontract-cli

usage

npx auditsmartcontract-cli

Once installed, you can use the CLI tool to audit your smart contract files.

auditai check <filename>

Usage

Once installed or run via NPX, you can use the CLI tool to audit your smart contract files.

Commands

Analyze a Smart Contract

To analyze a smart contract, use the following command:

auditai check <file>
  • <file>: Path to the smart contract file you want to analyze.

Example:

auditai check MyToken.sol

This will analyze the MyToken.sol contract and provide a detailed report of any detected issues.

Options

  • -V, --version: Output the version number of the CLI tool.
  • -h, --help: Display help for the CLI tool or any specific command.

Help Command

For help with any command, run:

auditai help [command]

Example:

auditai help check

Example Workflow

  1. Navigate to your project folder where your smart contract is located.

  2. Run the audit on your smart contract file:

    auditai check MyToken.sol
  3. Review the output for any detected issues and recommendations.

Supported Platforms

  • Ethereum
  • Binance Smart Chain (BSC)
  • Polygon
  • Avalanche

Contributing

We welcome contributions! If you'd like to contribute to auditsmartcontract-cli, follow these steps:

  1. Fork the repository at https://github.com/sgr-0007/auditsmartcontract-cli.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes and commit them (git commit -am 'Add your feature').
  4. Push the branch to your fork (git push origin feature/your-feature).
  5. Create a Pull Request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Support

If you encounter any issues or have questions, feel free to open an issue in the GitHub repository or contact us via email.