1.1.6 • Published 4 years ago

@digibear/curl v1.1.6

Weekly downloads
9
License
MIT
Repository
github
Last release
4 years ago

@digibear/curl

A super simple curl utility written in typescript.

This was originally written for a series of shell scripts I wrote using node.

curl(address, options)

const {curl} = require("@digibear/curl");

(async () => {
  const results = await curl("http://www.example.com", {
    mode: "GET",
    headers: {
      "api-key": "xxxxx-xxxxx-xxxxx",
    },
    flags: ["headers"]
  })
})().catch(err => {
  console.error(err);
  process.exit(1)
})

Options

  • mode(string)
  • headers(Object)

    • key: value
  • user(Object)

    • user

    • password

  • body(Object)

    • key: value
  • flags(array)

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago