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

@ironforge/req2code

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ironforge/req2code

Converts a request to code executing it in different languages.

  • 0.0.9
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

req2code Build+Test+Lint

Converts a request to the Ironforge API to code snippets in different languages.

Example Usage

const API_KEY = '<user-api-key>'
const render = new Req2Code(API_KEY)

const rendered = render.accounts.curl.filterByType({
  cluster: 'devnet',
  program: 'cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ',
  accountType: 'CandyMachine',
  body: { filter: { 'data.data.price': 250 } },
  limit: 5,
  offset: 0,
  cacheControl: 'max-age=5',
})

console.log(rendered)
curl 'https://accounts.ironforge.network/v1/devnet/cndy3Z4yapfJBmL3ShUp5exZKqR3z33thTzeNMm2gRZ'\
'/find/CandyMachine?limit=5&offset=0&apiKey=<user-api-key>' \
  -H 'content-type: application/json'\
  -H 'x-ironforge-cache-control: max-age=5'\
  --compressed

LICENSE

MIT

FAQs

Package last updated on 13 Jan 2024

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