Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

abi2oas

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abi2oas - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

11

index.js
#!/usr/bin/env node
const fs = require('fs');
const package = JSON.parse(fs.readFileSync('./package.json'));
const OpenAPIGenerator = require('./OpenAPIGenerator');

@@ -9,5 +10,5 @@ const program = require('commander');

program
.version('0.0.8')
.name('abi2oas')
.description("Autogenerate an Open API JSON corresponding to the functions in a smart contract's ABI. \n Call with the paths to your config file and your desired OpenAPI output file.")
.version(package.version)
.name(package.name)
.description(package.description)
.usage('<config_file_path> <output_file_path>')

@@ -19,3 +20,3 @@ .action((config_file, output_file) => {

program.on('--help', () => {
paddedLog(' For more information about configuration and generation, view the abi2oas homepage on GitHub.');
paddedLog(' Both paths should be relative to the current working directory. For more information about configuration and generation, view the abi2oas homepage on GitHub.');
});

@@ -22,0 +23,0 @@

@@ -114,3 +114,3 @@ let fs = require("fs");

}
paddedLog(`Successfully generated OpenAPI JSON for contract "${openAPIObj.info.title}", view result at "${path.resolve(__dirname, file_path)}"`);
paddedLog(`Successfully generated OpenAPI JSON for contract "${openAPIObj.info.title}", view result at "${path.resolve(process.cwd(), file_path)}"`);
return openAPIObj;

@@ -117,0 +117,0 @@ }

{
"name": "abi2oas",
"version": "0.0.8",
"description": "Ingests a smart contract's ABI and autogenerates OpenAPI JSON, ready for Swagger codegen.",
"version": "0.0.9",
"description": "Ingests a smart contract's ABI and autogenerates an OpenAPI JSON, ready for Swagger codegen.",
"main": "index.js",

@@ -6,0 +6,0 @@ "bin": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc