New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

code-gen

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-gen

Generate code from Pseudo code

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Code-Gen CG

Generate code from Pseudo code

Most of the times we write the same code we wrote some time back in the same programming language, the idea is to generate actual code from the pseudo code.

API Documentation

API - /cgservices/createNewFile POST

Description - This API creates a new file in the given directory with given filecontent and executes the code synchronously and gives the response.

Request form data

filename = File name to be created

directory = Directory in which the new File need to be created

filecontent = Code need to be saved and Executed in the file

API - /cgservices/executeFile GET

Description - This API executes the code in given file asynchronously and gives back process id, which we can send to get the actual response.

Request Query Parameters

filePath = Absoulte path of file

Response

{ pid: < process id to check response > }

API - /cgservices/getResponse GET

Description - This API gets back the response of files which ran asynchronously.

Request Query Parameters

pid = process id to get the response.

Response

{ response: < file execution response >, status: < status of code execution > }

Keywords

FAQs

Package last updated on 25 Mar 2016

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

  • 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