From 7d40c19cc63579f00bd7c11f042f709941d98b3f Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 13 Sep 2016 05:59:07 +0900 Subject: [PATCH] Update README.md --- README.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/README.md b/README.md index a4cc90e..8f51c23 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,24 @@ Installation ------------ `$ npm install webcard` +Usage +----- +`(url: string, opts: Options) => Promise` + +### Options +| Property | Type | Description | Default | +| :-------- | :------- | :---------------------------------------- | :------ | +| **proxy** | *string* | URL of proxy that wrap non-https contents | `null` | + +### Example +``` javascript +import webcard from 'webcard'; + +const html = await webcard('http://example.com', { + proxy: 'https://your.proxy.com' +}); +``` + License ------- [MIT](LICENSE)