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

curl_transcode

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curl_transcode

Transcode cURL query to various programming languages

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

curl_transcode

Transcode cURL query to various programming languages. The source directory that contains source files .curl.sh. Transcoding put results into the target directory. The source file name is keep unchange, the extension is changed to specific programming language. There are programming supported languages and platforms:

  • cURL
  • Rust
  • Go
  • C#
  • Java
  • Node.js
  • Python

Quickstart

npm install curl_transcode
mkdir source target
echo '{"replace": ["API_ENDPOINT"]}' > .curl_transcode.json
echo 'API_ENDPOINT="https://foo.bar/baz"' > .env
echo 'curl -X GET "$API_ENDPOINT"' > source/get.curl.sh
npx curl_transcode source target

Command

curl_transcode <source_directory> <target_directory>
  • source_directory - Path to directory that contains source files .curl.sh. It must be existed.
  • target_directory - Path to directory to put result files. It must be existed.

Configuration

// File: ".curl_transcode.json".
// Support JSON5 format.

{
  // List of tokens to replace by environment variable from source files
  // `.curl.sh`.
  //
  // Default: []
  //
  // Example: `API_ENDPOINT` will replace token `$API_ENDPOINT` by value of
  // environment variable `API_ENDPOINT`.
  "replace": ["API_ENDPOINT"]
}
# File: ".env"
# Contains environment variables for replacing source files `.curl.sh`.
API_ENDPOINT="https://foo.bar/baz

Keywords

FAQs

Package last updated on 15 Sep 2023

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