Socket
Socket
Sign inDemoInstall

curl2node

Package Overview
Dependencies
52
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    curl2node

curl2node converts CLI curl command to Node.JS code.


Version published
Maintainers
1
Install size
4.94 MB
Created

Readme

Source

curl2node

This is tool for converting curl bash command to Node.JS code.

Table of contents

  • Installation
  • Usage
  • Author

Installation

yarn global add curl2node

Usage

curl2node generator curl https://google.com 

If you would like to test if it will work first, feel free to use runner instead of generator.

curl2node runner curl https://google.com 

Generated code will look something like this:

const got = require("got");

const options = {
	"url": "https://google.com"
};

got(options).then((data) => {
	console.log(data);
}).catch((error) => {
	console.error(error);
});

Author

FAQs

Last updated on 27 Aug 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc