Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Commit b452d33

Browse files
committed
Update README
1 parent 5c756ff commit b452d33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ In the browser:
3636
//= require packagecloud/dist/packagecloud.browser.js
3737
...
3838
// main.js
39-
var pc = new PackageCloud('your_api_token', 'https://packagecloud.io');
39+
var pc = new packagecloud({token:'your_api_token', baseUrl:'https://packagecloud.io'});
4040
```
4141
Or in a NodeJS environment:
4242
```javascript
4343
import PackageCloud from "packagecloud";
44-
const pc = new PackageCloud('your_api_token', 'https://packagecloud.io');
44+
const pc = new packagecloud({token:'your_api_token', baseUrl:'https://packagecloud.io'});
4545
```
4646

4747
## Result objects

0 commit comments

Comments
 (0)