Repository
Current version released
a year ago
Dependencies
deno.land/x
Decurl
Curl bindings for Deno.
import Decurl, {globalInit, globalCleanup} from 'https://deno.land/x/decurl/decurl.ts';
globalInit();
const decurl = new Decurl();
decurl.setUrl('https://example.com');
decurl.perform();
console.log(new TextDecoder().decode(decurl.writeFunctionData));
decurl.cleanup();
globalCleanup();
Run with deno run -A --unstable
.
More examples in the tests folder.
libcurl
must be installed.
Roadmap
- Support Windows and Mac: currently only works in Linux.
- Support ARM: currently only works in amd64.
- Async operations: currently the entire API is blocking.