Skip to content

A basic wrapper library for certain functions found in <curl/curl.h>.

License

Notifications You must be signed in to change notification settings

CFiggers/janet-libcurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

janet-libcurl

A basic wrapper library for certain functions found in <curl/curl.h>.

Getting Started

Requires Janet and JPM.

  1. Clone this repo (for e.g., with the GitHub CLI, $ gh repo clone CFiggers/janet-libcurl.)

  2. Change directories into the cloned repo: $ cd janet-libcurl

  3. Build the shared library by running $ jpm build.

  4. To make janet-libcurl available as a Janet dependency anywhere on your system, run $ jpm install (on Ubuntu and similar systems, may required elevated permissions, e.g. $ sudo jpm install)

Now janet-libcurl can be imported at the Janet REPL or in a Janet source file using (import janet-libcurl).

janet-libcurl provides a single function: curl-easy. Try it from the Janet REPL:

$ janet -l "./build/janet-libcurl"
repl:1:> (curl-easy "https://www.example.com")

About

A basic wrapper library for certain functions found in <curl/curl.h>.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published