An open API service indexing awesome lists of open source software.

https://github.com/pkg6/website-collection

Site data collection
https://github.com/pkg6/website-collection

Last synced: 2 months ago
JSON representation

Site data collection

Awesome Lists containing this project

README

          

### Install dependencies

```
npm i website-collection
```

### Loading js method

~~~

~~~

### typescript import

```
import {EventCollection} from 'website-collection/lib/collection';
```

### Create an instance

~~~
let eventCollection = new EventCollection({url: "https://data.zhiqiang.wang/data-collect/receive",headers:{"token":"123456"}});
~~~

### send data

```
eventCollection.send()
```

### setInterval send data

~~~
setInterval(() => {
eventCollection.send("timer");
}, 1000);
~~~