0.0.5 • Published 6 years ago

curl2node v0.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

curl2node

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

Table of contents

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

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago