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

curlify

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlify

Generate a node HTTP(S) request from cURL command line arguments.

  • 0.1.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by160%
Maintainers
1
Weekly downloads
 
Created
Source

curlify

Generate a node HTTP(S) request from cURL command line arguments.

Usage

Example

var curlify = require('curlify')
// generate a request method from this cURL command string
var request = curlify('curl -X POST -H "content-type: application/json" -d \'{"foo": "bar"}\' http://example.com')
// make an http POST with the specified headers and data
request().pipe(process.stdout)

Browserify

The curlify module can be used as a browserify transform for cURL commands saved as files with the .curl extension.

The module will default to being a browserify transform if the given argument does not look like a cURL command (i.e., it doesn't start with 'curl ').

command.curl

curl http://example.com/ -X POST -d "some=data"
var b = browserify()
b.add('command.curl')
b.transform('curlify')
b.bundle()

License

(The MIT License)

Copyright 2014 Cameron Lakenen

Keywords

FAQs

Package last updated on 18 Mar 2015

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